-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
78 lines (78 loc) · 1.19 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
globals: {
Vue: 'readonly',
VueRouter: 'readonly',
Vuex: 'readonly',
axios: 'readonly',
CryptoJS: 'readonly',
SP: 'readonly',
spx: 'readonly',
history: 'readonly',
location: 'readonly'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-tabs': 0,
'comma-dangle': 0,
'arrow-parens': 0,
'no-confusing-arrow': 0,
'no-nested-ternary': 0,
'no-use-before-define': 0,
'no-console': 0,
'no-await-in-loop': 0,
'no-loop-func': 0,
'implicit-arrow-linebreak': 0,
'import/no-cycle': [
0,
{
'maxDepth': 1
}
],
'max-len': [
'error',
120
],
'indent': [
'error',
'tab',
{
'SwitchCase': 1
}
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
],
'operator-linebreak': 0
},
parserOptions: {
parser: 'babel-eslint',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};