forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocha.js
38 lines (38 loc) · 997 Bytes
/
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
module.exports.recommended = {
env: {
mocha: true,
},
plugins: {
mocha: require('eslint-plugin-mocha'),
},
rules: {
'mocha/handle-done-callback': 2,
'mocha/max-top-level-suites': [
2,
{
limit: 1,
},
],
'mocha/no-async-describe': 2,
'mocha/no-empty-description': 2,
'mocha/no-exclusive-tests': 2,
'mocha/no-exports': 2,
'mocha/no-global-tests': 2,
'mocha/no-hooks': 0,
'mocha/no-hooks-for-single-case': 2,
'mocha/no-identical-title': 2,
'mocha/no-mocha-arrows': 0,
'mocha/no-nested-tests': 2,
'mocha/no-pending-tests': 2,
'mocha/no-return-and-callback': 2,
'mocha/no-return-from-async': 2,
'mocha/no-setup-in-describe': 2,
'mocha/no-sibling-hooks': 2,
'mocha/no-skipped-tests': 2,
'mocha/no-synchronous-tests': 0,
'mocha/no-top-level-hooks': 2,
'mocha/prefer-arrow-callback': 0,
'mocha/valid-suite-description': 0,
'mocha/valid-test-description': 0,
},
};