Skip to content

Commit

Permalink
fix: updated eslint config and npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed May 7, 2022
1 parent 509e4b9 commit 672f62e
Show file tree
Hide file tree
Showing 14 changed files with 1,228 additions and 652 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
module.exports = {
extends: ['eslint-config-kouts/vue2']
extends: ['eslint-config-kouts/vue2'],
overrides: [
{
// Disable multi-word-component-names for docs examples
files: ['docs/.examples/**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off'
}
}
]
}
1 change: 1 addition & 0 deletions docs/.examples/Todo/TodoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default {
}
const inactiveTodos = this.$store.get('todos').map((item) => {
item.active = false
return item
})
Expand Down
3 changes: 1 addition & 2 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ module.exports = {
[
'script',
{
src:
'https://polyfill.io/v3/polyfill.min.js?features=NodeList.prototype.forEach'
src: 'https://polyfill.io/v3/polyfill.min.js?features=NodeList.prototype.forEach'
}
],
[
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './styles/styles.scss'
import Vuex from 'vuex'
import { createPathStore } from '../../src/pathStore.js'
import { store } from './vuex-store'
import './styles/styles.scss'

export default ({
Vue, // the version of Vue being used in the VuePress app
Expand All @@ -15,6 +15,6 @@ export default ({
Vue.prototype.$ps = createPathStore({
state: {}
})
Vue.mixin({ store: store })
Vue.mixin({ store })
}
}
Loading

0 comments on commit 672f62e

Please sign in to comment.