-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
34 lines (34 loc) · 940 Bytes
/
.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
{
"root": true,
"env": {
"browser": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"no-multiple-empty-lines": "warn",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-undef": ["off", "false"],
"no-console": "warn",
"no-multi-spaces": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"func-call-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"no-trailing-spaces": ["error"],
"max-lines": ["warn", 300],
"max-lines-per-function": ["warn", 25],
"complexity": ["warn", 6],
"max-nested-callbacks": ["warn", 2],
"max-depth": ["warn", 3],
"no-param-reassign": "error"
}
}