1+ module . exports = {
2+ plugins : [
3+ 'chai-expect' ,
4+ 'mocha'
5+ ] ,
6+ env : {
7+ mocha : true ,
8+ } ,
9+ rules : {
10+ // JSHint "expr", disabled due to chai expect assertions
11+ 'no-unused-expressions' : 0 ,
12+
13+ // disabled for easier asserting of file contents
14+ 'quotes' : 0 ,
15+
16+ // disabled because describe(), it(), etc. should not use arrow functions
17+ 'prefer-arrow-callback' : 0 ,
18+
19+ /*** chai-expect ***/
20+
21+ 'chai-expect/missing-assertion' : 2 ,
22+ 'chai-expect/terminating-properties' : 2 ,
23+ 'chai-expect/no-inner-compare' : 2 ,
24+
25+ /*** mocha ***/
26+
27+ 'mocha/no-exclusive-tests' : 'error' ,
28+ 'mocha/no-skipped-tests' : 'off' ,
29+ 'mocha/no-pending-tests' : 'off' ,
30+ 'mocha/handle-done-callback' : 'error' ,
31+ 'mocha/no-synchronous-tests' : 'off' ,
32+ 'mocha/no-global-tests' : 'error' ,
33+ 'mocha/no-return-and-callback' : 'error' ,
34+ 'mocha/valid-test-description' : 'off' ,
35+ 'mocha/valid-suite-description' : 'off' ,
36+ 'mocha/no-sibling-hooks' : 'error' ,
37+ 'mocha/no-mocha-arrows' : 'error' ,
38+ 'mocha/no-hooks' : 'off' ,
39+ 'mocha/no-hooks-for-single-case' : 'off' ,
40+ 'mocha/no-top-level-hooks' : 'error' ,
41+ 'mocha/no-identical-title' : 'error' ,
42+ 'mocha/max-top-level-suites' : 'off' ,
43+ 'mocha/no-nested-tests' : 'error'
44+ }
45+ } ;
0 commit comments