Skip to content

Commit 672f62e

Browse files
committed
fix: updated eslint config and npm packages
1 parent 509e4b9 commit 672f62e

14 files changed

+1228
-652
lines changed

.eslintrc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
module.exports = {
2-
extends: ['eslint-config-kouts/vue2']
2+
extends: ['eslint-config-kouts/vue2'],
3+
overrides: [
4+
{
5+
// Disable multi-word-component-names for docs examples
6+
files: ['docs/.examples/**/*.vue'],
7+
rules: {
8+
'vue/multi-word-component-names': 'off'
9+
}
10+
}
11+
]
312
}

docs/.examples/Todo/TodoList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default {
7272
}
7373
const inactiveTodos = this.$store.get('todos').map((item) => {
7474
item.active = false
75+
7576
return item
7677
})
7778

docs/.vuepress/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ module.exports = {
4949
[
5050
'script',
5151
{
52-
src:
53-
'https://polyfill.io/v3/polyfill.min.js?features=NodeList.prototype.forEach'
52+
src: 'https://polyfill.io/v3/polyfill.min.js?features=NodeList.prototype.forEach'
5453
}
5554
],
5655
[

docs/.vuepress/enhanceApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import './styles/styles.scss'
21
import Vuex from 'vuex'
32
import { createPathStore } from '../../src/pathStore.js'
43
import { store } from './vuex-store'
4+
import './styles/styles.scss'
55

66
export default ({
77
Vue, // the version of Vue being used in the VuePress app
@@ -15,6 +15,6 @@ export default ({
1515
Vue.prototype.$ps = createPathStore({
1616
state: {}
1717
})
18-
Vue.mixin({ store: store })
18+
Vue.mixin({ store })
1919
}
2020
}

0 commit comments

Comments
 (0)