-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
42 lines (42 loc) · 1.12 KB
/
.eslintrc.json
1
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
32
33
34
35
36
37
38
39
40
41
42
{
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "./tsconfig.json",
"extraFileExtensions": [".vue"]
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended"
],
"rules": {
"indent-legacy": ["error", 2, {
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"CallExpression": { "arguments": 1 }
}],
"semi": "error",
"no-undef": "off",
"no-unused-vars": "off",
"require-jsdoc": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"quotes": ["error", "double", { "avoidEscape": true }],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/script-indent": ["error", 2, { "baseIndent": 1 } ],
"vue/component-name-in-template-casing": ["error", "kebab-case"]
},
"overrides": [
{
"files": ["*.vue"],
"rules": {
"@typescript-eslint/indent": "off"
}
}
]
}