-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
38 lines (36 loc) · 1.22 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"no-control-regex": 0,
"no-var": "error",
"no-redeclare": "off",
"no-unreachable": "error",
"no-unexpected-multiline": "error",
// Styling
"camelcase": "warn",
"capitalized-comments": ["warn", "always", { "ignoreConsecutiveComments": true }],
"comma-spacing": ["warn", { "before": false, "after": true }],
"func-call-spacing": ["error", "never"],
"indent": ["error", 4, { "ignoredNodes": ["IfStatement"], "SwitchCase": 1 }], // TODO: This also ignores if statements with wrong indentation but I couldn't get it to only ignore else in if-else one-liner
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-extra-semi": "error",
"semi": ["error", "always"],
"semi-spacing": "error",
"semi-style": ["error", "last"],
"quotes": ["error", "double", { "avoidEscape": true }],
"spaced-comment": "warn"
}
}