-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.67 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
module.exports = {
root: true,
env: {
es2022: true,
node: true,
},
parserOptions: {
ecmaVersion: 13,
},
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
],
rules: {
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/multiline-html-element-content-newline': ['error', { allowEmptyLines: true }],
'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',
'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',
'object-curly-spacing': ['error', 'always'],
'vue/space-unary-ops': 'error',
'space-unary-ops': 'error',
'vue/no-mutating-props': 'off',
'vue/multi-word-component-names': 'off',
'indent': ['error', 2, { 'SwitchCase': 1 }],
'no-trailing-spaces': 'error',
'quotes': [2, 'single', 'avoid-escape'],
},
}