-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.js
46 lines (44 loc) · 1.16 KB
/
base.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
module.exports = {
"plugins": [
"mocha",
"node"
],
"parserOptions": {
"sourceType": "commonjs"
},
"env": {
"mocha": true,
"node": true
},
"rules": {
"node/no-deprecated-api": "warn",
"array-bracket-spacing": 0,
"comma-dangle": [ "error", "never" ],
"complexity": [ "warn", 8 ],
"func-names": 0,
"global-require": 0,
"no-console": [ "error", {
"allow": [ "warn", "error" ]
}],
"no-param-reassign": [ "warn", {
"props": true
}],
"no-use-before-define": [ "error", "nofunc" ],
"no-unused-expressions": 0,
"no-underscore-dangle": 0,
"vars-on-top": 0,
"mocha/no-exclusive-tests": "error",
"mocha/no-skipped-tests": "warn",
"mocha/no-pending-tests": "warn",
"mocha/handle-done-callback": "error",
"mocha/no-synchronous-tests": 0,
"mocha/no-global-tests": "error",
"mocha/no-return-and-callback": "error",
"mocha/valid-test-description": "error",
"mocha/valid-suite-description": "error",
"mocha/no-sibling-hooks": "error",
"mocha/no-identical-title": "error",
"mocha/max-top-level-suites": "warn",
"mocha/no-nested-tests": "error"
}
};