@alicevia/eslint-config-vue 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +13 -2
- package/package.json +4 -2
package/index.js
CHANGED
@@ -10,6 +10,17 @@ module.exports = {
|
|
10
10
|
'plugin:@typescript-eslint/recommended',
|
11
11
|
],
|
12
12
|
overrides: [
|
13
|
+
{
|
14
|
+
file:'*.vue',
|
15
|
+
rules:{
|
16
|
+
'vue/multi-word-component-names': [
|
17
|
+
'error',
|
18
|
+
{
|
19
|
+
ignores: ['index'], //需要忽略的组件名
|
20
|
+
},
|
21
|
+
],
|
22
|
+
}
|
23
|
+
}
|
13
24
|
],
|
14
25
|
parser: 'vue-eslint-parser',
|
15
26
|
parserOptions: {
|
@@ -29,8 +40,8 @@ module.exports = {
|
|
29
40
|
'comma-dangle': ['error', 'always-multiline'],
|
30
41
|
'space-before-function-paren': ['error', 'always'],
|
31
42
|
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0,maxBOF: 0 }],
|
32
|
-
'key-spacing': ['error', {
|
33
|
-
'arrow-spacing': ['error',{
|
43
|
+
'key-spacing': ['error', { mode: 'strict'}],
|
44
|
+
'arrow-spacing': ['error',{ btrueefore: true, after: }],
|
34
45
|
'object-curly-spacing': ['error', 'always'],
|
35
46
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
36
47
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@alicevia/eslint-config-vue",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.18",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
@@ -14,7 +14,9 @@
|
|
14
14
|
},
|
15
15
|
"dependencies": {
|
16
16
|
"eslint-plugin-vue": "^9.0.1",
|
17
|
-
"vue-eslint-parser": "^9.0.2"
|
17
|
+
"vue-eslint-parser": "^9.0.2",
|
18
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
19
|
+
"@typescript-eslint/parser": "^5.48.1"
|
18
20
|
},
|
19
21
|
"scripts": {
|
20
22
|
"patch": "npm version patch"
|