Skip to content

Commit 55a2542

Browse files
committed
feat: use eslint-plugin-vue
1 parent 646b5e2 commit 55a2542

File tree

4 files changed

+258
-131
lines changed

4 files changed

+258
-131
lines changed

config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module.exports = {
2-
plugins: ['html', 'vue-libs'],
2+
extends: ['plugin:vue/essential'],
3+
plugins: ['vue-libs'],
34

45
parserOptions: {
6+
parser: require.resolve('babel-eslint'),
57
ecmaVersion: 2017,
6-
ecmaFeatures: {
7-
experimentalObjectRestSpread: true,
8-
jsx: true
9-
},
108
sourceType: 'module'
119
},
1210

@@ -136,6 +134,7 @@ module.exports = {
136134
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
137135
'object-curly-spacing': [2, 'always', { objectsInObjects: false }],
138136
'array-bracket-spacing': [2, 'never'],
139-
'vue-libs/jsx-uses-vars': 2
137+
'vue-libs/jsx-uses-vars': 2,
138+
'vue/require-v-for-key': 0
140139
}
141140
}

package-lock.json

Lines changed: 0 additions & 124 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"eslint": "^4.7.0"
1818
},
1919
"dependencies": {
20-
"eslint-plugin-html": "^4.0.1"
20+
"babel-eslint": "^8.2.3",
21+
"eslint-plugin-vue": "^4.5.0"
2122
}
2223
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy