This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
76 lines (76 loc) · 1.83 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
76
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"parser": "babel-eslint",
"extends": [
"standard",
"eslint:recommended"
],
"plugins": [
"babel"
],
"parserOptions": {
"ecmaVersion": 11
},
"globals": {
"systemsettings": "readonly",
"config": "readonly",
"db": "readonly",
"logger": "readonly",
"__": "readonly",
"__n": "readonly"
},
"rules": {
//babel as parser makes "standard" incompatible with these two rule, skip its
"template-curly-spacing": 0,
"indent": 0,
"space-before-function-paren": 0,
"no-magic-numbers": [
2,
{
"ignoreArrayIndexes": true,
"ignoreDefaultValues": true,
"ignore": [
-1,
0,
1,
2,
3,
10,
24,
60,
100,
1000,
1024,
3600
]
}
],
"no-console": 2,
"no-undef": 0,
"no-unreachable-loop": 2,
"default-case": 2,
"default-case-last": 2,
"no-constructor-return": 2,
"no-eq-null": 2,
"no-extra-bind": 2,
"no-labels": 2,
"no-multi-spaces": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-param-reassign": 2,
"no-unused-expressions": 2,
"no-useless-return": 2,
"yoda": 2,
"camelcase": 2,
"no-multiple-empty-lines": 2,
"no-new-object": 2,
"no-var": 2,
"prefer-const": 2,
"prefer-rest-params": 2,
"no-extra-parens": 1
}
}