-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
83 lines (83 loc) · 1.7 KB
/
.eslintrc.js
File metadata and controls
83 lines (83 loc) · 1.7 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
],
parserOptions: {
ecmaVersion: 9,
ecmaFeatures: {
jsx: false,
},
sourceType: 'module',
},
rules: {
'arrow-parens': 'off',
'no-tabs': 'off',
complexity: ['error', 10],
'global-require': 'off',
'handle-callback-err': [
'error',
'^(err|error)$'
],
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'linebreak-style': 'off',
'no-catch-shadow': 'error',
'no-continue': 'off',
'no-div-regex': 'warn',
'no-else-return': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-shadow': 'off',
'no-extra-semi': 'off',
// enable console for this project
'no-console': 'off',
'no-multi-assign': 'off',
'no-underscore-dangle': 'off',
// 'node/no-deprecated-api': 'error',
// 'node/process-exit-as-throw': 'error',
'operator-linebreak': [
'error',
'after',
{
overrides: {
':': 'before',
'?': 'before',
},
}
],
'prefer-arrow-callback': 'off',
'prefer-destructuring': 'off',
'prefer-template': 'off',
'quote-props': [
1,
'as-needed',
{
unnecessary: true,
}
],
semi: [
'error',
'always'
],
camelcase: [
'error',
{
properties: 'never',
}
],
'func-names': ['error', 'as-needed'],
'comma-dangle': ['error', {
functions: 'never',
arrays: 'never',
imports: 'never',
exports: 'never',
objects: 'always-multiline',
}],
},
}