-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
62 lines (59 loc) · 1.67 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
module.exports = {
"root": true,
"env": {
"es2020": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"jest",
],
"ignorePatterns": ["*eslintrc*"],
"rules":{
"no-console": "off",
"comma-dangle": "off",
"indent": ['warn',4,{
SwitchCase: 1,
"ignoreComments": true,
}],
"object-curly-spacing": ["warn", "always"],
"object-curly-newline": ["warn", { "consistent": true, "multiline": true }],
"key-spacing": ["warn", {
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon"
}
}],
"space-before-blocks": ["warn"],
"keyword-spacing": ["warn"],
"no-multiple-empty-lines": ["warn", { "max": 1, "maxEOF": 1 }],
"object-curly-spacing": ["warn", "always"],
"semi": ["warn", "never"],
"no-unused-vars": [ "warn", { "ignoreRestSiblings": true }],
'arrow-spacing': ["warn", { "before": true, "after": true }],
"comma-spacing": ['warn', { "before": false, "after": true }],
"space-infix-ops": ["warn"],
'space-in-parens': ["warn", "always"],
"array-bracket-spacing": ["warn", "always"],
"prefer-const": "warn",
},
"globals": {
"before": true ,
"fetch": false ,
"FormData": false,
"__DEV__": false,
"rtron": true,
"nimp": true,
"snapshotGasCost": true,
}
};