-
Notifications
You must be signed in to change notification settings - Fork 1
/
mocha.js
50 lines (48 loc) · 1.34 KB
/
mocha.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
47
48
49
50
/**
* ESLint configuration file - Mocha config
*
* An object must be exported from this file containing the
* configuration. Anything in this file can be overridden by suppling
* the corresponding CLI argument.
*/
module.exports = {
"extends": "pat",
"env": {
"mocha": true,
"node": true,
"browser": false,
},
"plugins": [ "mocha" ],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": true,
"jsx": false,
},
},
"globals": {
"expect": "readonly",
},
"rules": {
// ESLint overrides.
"no-magic-numbers": [ "off" ],
'no-unused-expressions': [ 'off' ],
'max-lines': [ 'off' ],
// Mocha rules.
"mocha/max-top-level-suites": [ "error", { "limit": 1 }],
"mocha/no-async-describe": [ "error" ],
"mocha/no-exclusive-tests": [ "error" ],
"mocha/no-global-tests": [ "error" ],
"mocha/no-hooks-for-single-case": [ "error" ],
"mocha/no-identical-title": [ "error" ],
"mocha/no-nested-tests": [ "error" ],
"mocha/no-pending-tests": [ "error" ],
"mocha/no-return-from-async": [ "error" ],
"mocha/no-sibling-hooks": [ "error" ],
"mocha/no-skipped-tests": [ "error" ],
"mocha/no-top-level-hooks": [ "error" ],
"mocha/no-exports": [ "error" ],
"mocha/no-empty-description": [ "error" ],
},
}