-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
89 lines (89 loc) · 2.61 KB
/
.eslintrc.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"vue/this-in-template": ["error", "never"],
indent: ['warn', 4],
"vue/script-indent": ["warn", 4, {
baseIndent: 1,
switchCase: 0,
ignores: []
}],
quotes: 'off',
'no-throw-literal': 'off',
'vue/no-v-for-template-key-on-child': 'off',
'vue/no-v-for-template-key': 'off',
semi: 'warn',
// 'no-explicit-any': 'on',
"@typescript-eslint/ban-types": "warn",
"no-constant-condition": "warn",
"@typescript-eslint/no-explicit-any": "warn",
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-empty-function': 'warn',
'vue/no-v-model-argument': 'off',
'import/no-duplicates': 'warn',
'no-trailing-spaces': 'warn',
'promise/param-names': 'warn',
camelcase: 'warn',
'no-path-concat': 'warn',
'object-curly-spacing': 'warn',
'spaced-comment': 'warn',
'vue/no-unused-vars': 'warn',
'quote-props': 'warn',
'no-prototype-builtins': 'warn',
'vue/no-unused-components': 'warn',
'vue/html-indent': ['warn', 4],
'comma-dangle': 'off',
'vue/html-self-closing': 'off',
'vue/custom-event-name-casing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attributes-order': 'off',
'vue/order-in-components': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'no-multiple-empty-lines': 'warn',
'eqeqeq': 'warn',
'no-cond-assign': 'off',
'no-useless-escape': 'off',
'no-useless-return': 'off',
'no-debugger': 'off',
'no-unused-expressions': 'off',
"vue/max-attributes-per-line": ["warn", {
"singleline": {
"max": 3
},
"multiline": {
"max": 1
}
}],
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
},
{
files: ["*.vue"],
rules: {
indent: "off"
}
}
]
}