-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.json
53 lines (53 loc) · 1.58 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
{
"extends": "eslint:recommended",
"env": {
"es2019": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "script"
},
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"guard-for-in": ["error"],
"no-extend-native": ["error"],
"wrap-iife": ["error"],
"indent": ["error", 4],
"no-use-before-define": ["error", { "functions": false }],
"new-cap": ["error"],
"no-caller": ["error"],
"strict": ["error"],
"no-trailing-spaces": ["error"],
"max-params": ["error", 10],
"max-depth": ["error", 5],
"max-statements": ["error", 25],
"max-len": ["error", 110],
"no-var": ["error"],
// Allow unused vars if prefixed with "_"
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-multi-str": ["error"],
"camelcase": ["error"],
"space-unary-ops": ["error"],
"comma-spacing": ["error"],
"eol-last": ["error"],
"space-before-blocks": ["error", "always"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"no-confusing-arrow": ["error"],
"object-curly-spacing": ["error", "always"]
},
"overrides": [
{
"files": ["test/**/*.js"],
"env": {
"mocha": true
},
"rules": {
"max-statements": ["off"]
}
}
]
}