-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.cjs
63 lines (63 loc) · 1.54 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
module.exports = {
'root': true,
'extends': [
'plugin:vue/vue3-recommended',
'eslint:recommended',
],
'env': {
node: true,
es2021: true,
'vue/setup-compiler-macros': true,
},
'rules': {
'no-console': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/array-bracket-spacing': [
'error',
'never',
],
'array-bracket-spacing': [
'error',
'never',
],
'vue/arrow-spacing': 'error',
'arrow-spacing': 'error',
'semi': [
'error',
'never',
],
'vue/block-spacing': 'error',
'block-spacing': 'error',
'vue/brace-style': 'error',
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'vue/camelcase': 'error',
'camelcase': 'error',
'vue/comma-dangle': [
'error',
'always-multiline',
],
'comma-dangle': [
'error',
'always-multiline',
],
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
],
'vue/eqeqeq': 'error',
'eqeqeq': 'error',
'vue/key-spacing': 'error',
'key-spacing': 'error',
'vue/object-curly-spacing': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'vue/space-unary-ops': 'error',
'space-unary-ops': 'error',
'vue/multi-word-component-names': 'off',
'indent': ['error', 2, { 'SwitchCase': 1 }],
'quotes': [2, 'single', 'avoid-escape'],
'no-trailing-spaces': 'error',
'space-infix-ops': 'error',
'no-multi-spaces': 'error',
},
}