-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
61 lines (58 loc) · 1.24 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
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@vue/standard', 'plugin:vue/vue3-recommended', '@vue/typescript', ],
rules: {
/** #NIMBUS-TPL#eslint-rule#START */
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'comma-dangle': [
'error',
{
arrays: 'always',
objects: 'always',
imports: 'never',
exports: 'never',
functions: 'never',
},
],
'comma-spacing': [
'error',
{
before: false,
after: true,
},
],
'no-shadow': ['warn', ],
'standard/object-curly-even-spacing': [0, 'either', ],
'standard/array-bracket-even-spacing': [0, 'either', ],
'standard/no-callback-literal': 0,
'array-bracket-spacing': 'off',
'standard/computed-property-even-spacing': 0,
'space-before-function-paren': ['error', 'always', ],
'vue/max-attributes-per-line': [
2,
{
singleline: 20,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
indent: [2, 'tab', ],
'no-tabs': 0,
'no-mixed-spaces-and-tabs': 0,
'vue/no-parsing-error': [
2,
{
'x-invalid-end-tag': false,
},
],
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
}