-
Notifications
You must be signed in to change notification settings - Fork 8
/
+mocha.js
53 lines (49 loc) · 999 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* eslint-disable quote-props */
var verifyPeer = require('./verify-peer-dependency');
verifyPeer('eslint-plugin-mocha');
module.exports = {
'globals': {
// mocha
'after': false,
'afterEach': false,
'before': false,
'beforeEach': false,
'context': false,
'describe': false,
'it': false,
'mocha': false,
'run': false,
'setup': false,
'specify': false,
'suite': false,
'suiteSetup': false,
'suiteTeardown': false,
'teardown': false,
'test': false,
'xcontext': false,
'xdescribe': false,
'xit': false,
'xspecify': false,
// should
'should': false,
'Assertion': false,
'PromisedAssertion': false,
// chai
'expect': false,
// sinon
'sinon': false,
'spy': false,
'stub': false
},
'plugins': [
'mocha'
],
'rules': {
// mocha rules
'mocha/handle-done-callback': 'error',
'mocha/no-exclusive-tests': 'warn',
'mocha/no-identical-title': 'error',
'mocha/no-skipped-tests': 'warn',
'mocha/valid-test-description': 'off'
}
};