-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
44 lines (44 loc) · 1.01 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
node: true,
'vue/setup-compiler-macros': true,
"browser": true,
"es2021": true,
},
"extends": [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/typescript/recommended"
],
"parserOptions": {
"ecmaVersion": 2021
},
plugins: [
'vuejs-accessibility',
'@typescript-eslint'
],
rules: {
// override/add rules settings here, such as:
'max-len': [
"warn", {
"code": 140,
"tabWidth": 2
}],
'vue/no-unused-vars': 'error',
'vue/html-indent': ["error", 2, {
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}],
"vue/first-attribute-linebreak": ["error", {
"singleline": "ignore",
"multiline": "below"
}],
"vue/no-spaces-around-equal-signs-in-attribute": ['warn'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-inferrable-types': ['off']
}
}