/
.eslintrc.json
76 lines (75 loc) · 1.45 KB
/
.eslintrc.json
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
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "script",
"ecmaFeatures": {
"jsx": false
}
},
"env": {
"browser": false,
"node": true,
"mocha": true
},
"extends": ["plugin:sonarjs/recommended", "airbnb-base"],
"overrides": [
{
"files": [
"gui/**/*.js"
],
"env": {
"browser": true,
"node": true,
"jquery": true
},
"parserOptions": {
"sourceType": "module"
}
}
],
"plugins": [
"standard", "sonarjs"
],
"rules": {
"sonarjs/cognitive-complexity": ["error", 25],
"strict": [
"error",
"global"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"gui/*/*.js",
"test/**/*.js",
"webpack.*.js"
]
}
],
"one-var": "off",
"prefer-destructuring": "warn",
"no-mixed-operators": "off",
"arrow-body-style": "off",
"brace-style": "off",
"padded-blocks": "off",
"no-plusplus": "off",
"arrow-spacing": "off",
"object-curly-spacing": "off",
"prefer-const": "warn",
"no-unused-vars": "warn",
"object-shorthand": "warn",
"no-param-reassign": "warn",
"no-console": "error",
"newline-per-chained-call": "off",
"no-continue": "off",
"no-multi-spaces": "off",
"max-len": [
"error",
140
],
"linebreak-style": [
"error",
"unix"
]
}
}