@alicevia/eslint-config-vue 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +37 -31
- package/package.json +2 -3
package/index.js
CHANGED
@@ -1,31 +1,37 @@
|
|
1
|
-
module.exports = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
1
|
+
module.exports = {
|
2
|
+
env: {
|
3
|
+
browser: true,
|
4
|
+
es2021: true,
|
5
|
+
node: true,
|
6
|
+
},
|
7
|
+
extends: [
|
8
|
+
'eslint:recommended',
|
9
|
+
'plugin:vue/vue3-essential',
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
11
|
+
],
|
12
|
+
overrides: [
|
13
|
+
],
|
14
|
+
parser: 'vue-eslint-parser',
|
15
|
+
parserOptions: {
|
16
|
+
ecmaVersion: 'latest',
|
17
|
+
sourceType: 'module',
|
18
|
+
parser: '@typescript-eslint/parser',
|
19
|
+
},
|
20
|
+
plugins: [
|
21
|
+
'vue',
|
22
|
+
'@typescript-eslint',
|
23
|
+
],
|
24
|
+
rules: {
|
25
|
+
quotes: ['error', 'single'],
|
26
|
+
'quote-props': ['error', 'as-needed'],
|
27
|
+
indent: ['error', 2],
|
28
|
+
semi: ['error', 'never'],
|
29
|
+
'comma-dangle': ['error', 'always-multiline'],
|
30
|
+
'space-before-function-paren': ['error', 'always'],
|
31
|
+
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0,maxBOF: 0 }],
|
32
|
+
'key-spacing': ['error', { afterColon: true }],
|
33
|
+
'arrow-spacing': ['error',{ before: true, after: true }],
|
34
|
+
'object-curly-spacing': ['error', 'always'],
|
35
|
+
'no-console': ['error', { allow: ['warn', 'error'] }],
|
36
|
+
},
|
37
|
+
}
|
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.16",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
@@ -14,8 +14,7 @@
|
|
14
14
|
},
|
15
15
|
"dependencies": {
|
16
16
|
"eslint-plugin-vue": "^9.0.1",
|
17
|
-
"vue-eslint-parser": "^9.0.2"
|
18
|
-
"@alicevia/eslint-config-ts": "1.0.15"
|
17
|
+
"vue-eslint-parser": "^9.0.2"
|
19
18
|
},
|
20
19
|
"scripts": {
|
21
20
|
"patch": "npm version patch"
|