-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
64 lines (62 loc) · 2.03 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
parser: 'vue-eslint-parser',
root: true,
env: {
node: true
},
extends: [
'@vue/typescript/recommended',
'plugin:vue/vue3-essential'
],
parserOptions: {
ecmaVersion: 2022
},
rules: {
'object-curly-spacing': [ 'warn', 'always' ],
'array-bracket-spacing': [ 'warn', 'always' ],
'spaced-comment': [ 'error', 'always' ],
'semi': [ 'error', 'never' ],
'comma-dangle': [ 'error', 'never' ],
'indent': [ 'error', 4, { 'SwitchCase': 1 } ],
'eol-last': [ 'error', 'never' ],
'array-element-newline': [ 'warn', 'consistent' ],
'object-property-newline': 'warn',
'vue/script-indent': [ 'error', 4, {
'baseIndent': 1,
'switchCase': 1,
'ignores': []
} ],
'vue/html-indent': [ 'error', 4, {
'attribute': 1,
'baseIndent': 1,
'closeBracket': 0,
'alignAttributesVertically': true,
'ignores': []
} ],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'vue/multi-word-component-names': 'off',
'vue/html-indent': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/v-on-event-hyphenation': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/this-in-template': 'off',
'vue/no-unused-vars': 'off',
'vue/require-prop-types': 'off',
'vue/attribute-hyphenation': 'off',
'vue/component-definition-name-casing': 'off',
'vue/no-mutating-props': 'off'
},
'overrides': [
{
'files': [ '*.vue' ],
'rules': {
'indent': 'off'
}
}
]
}