-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.1 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "windows"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"require-atomic-updates": "off",
"no-prototype-builtins": "off",
"no-useless-escape": "off",
"curly":"error",
"func-style": ["error", "expression"],
"max-lines": ["error", {"max": 1000, "skipBlankLines": true, "skipComments": true}],
"max-lines-per-function": ["error", { "max": 50 }],
"one-var": ["error", "never"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-spacing": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-infix-ops": "error",
"no-cond-assign":"error"
}
}