1 | 'use strict';
|
2 |
|
3 | module.exports = {
|
4 | rules: {
|
5 | 'handle-done-callback': require('./lib/rules/handle-done-callback'),
|
6 | 'max-top-level-suites': require('./lib/rules/max-top-level-suites'),
|
7 | 'no-async-describe': require('./lib/rules/no-async-describe'),
|
8 | 'no-exclusive-tests': require('./lib/rules/no-exclusive-tests'),
|
9 | 'no-exports': require('./lib/rules/no-exports'),
|
10 | 'no-global-tests': require('./lib/rules/no-global-tests'),
|
11 | 'no-hooks': require('./lib/rules/no-hooks'),
|
12 | 'no-hooks-for-single-case': require('./lib/rules/no-hooks-for-single-case'),
|
13 | 'no-identical-title': require('./lib/rules/no-identical-title'),
|
14 | 'no-mocha-arrows': require('./lib/rules/no-mocha-arrows'),
|
15 | 'no-nested-tests': require('./lib/rules/no-nested-tests'),
|
16 | 'no-pending-tests': require('./lib/rules/no-pending-tests'),
|
17 | 'no-return-and-callback': require('./lib/rules/no-return-and-callback'),
|
18 | 'no-return-from-async': require('./lib/rules/no-return-from-async'),
|
19 | 'no-setup-in-describe': require('./lib/rules/no-setup-in-describe'),
|
20 | 'no-sibling-hooks': require('./lib/rules/no-sibling-hooks'),
|
21 | 'no-skipped-tests': require('./lib/rules/no-skipped-tests'),
|
22 | 'no-synchronous-tests': require('./lib/rules/no-synchronous-tests'),
|
23 | 'no-top-level-hooks': require('./lib/rules/no-top-level-hooks'),
|
24 | 'prefer-arrow-callback': require('./lib/rules/prefer-arrow-callback'),
|
25 | 'valid-suite-description': require('./lib/rules/valid-suite-description'),
|
26 | 'valid-test-description': require('./lib/rules/valid-test-description')
|
27 | },
|
28 | configs: {
|
29 | recommended: {
|
30 | env: { mocha: true },
|
31 | plugins: [ 'mocha' ],
|
32 | rules: {
|
33 | 'mocha/handle-done-callback': 'error',
|
34 | 'mocha/max-top-level-suites': [ 'error', { limit: 1 } ],
|
35 | 'mocha/no-async-describe': 'error',
|
36 | 'mocha/no-exclusive-tests': 'warn',
|
37 | 'mocha/no-exports': 'error',
|
38 | 'mocha/no-global-tests': 'error',
|
39 | 'mocha/no-hooks': 'off',
|
40 | 'mocha/no-hooks-for-single-case': 'warn',
|
41 | 'mocha/no-identical-title': 'error',
|
42 | 'mocha/no-mocha-arrows': 'error',
|
43 | 'mocha/no-nested-tests': 'error',
|
44 | 'mocha/no-pending-tests': 'warn',
|
45 | 'mocha/no-return-and-callback': 'error',
|
46 | 'mocha/no-return-from-async': 'off',
|
47 | 'mocha/no-setup-in-describe': 'error',
|
48 | 'mocha/no-sibling-hooks': 'error',
|
49 | 'mocha/no-skipped-tests': 'warn',
|
50 | 'mocha/no-synchronous-tests': 'off',
|
51 | 'mocha/no-top-level-hooks': 'warn',
|
52 | 'mocha/prefer-arrow-callback': 'off',
|
53 | 'mocha/valid-suite-description': 'off',
|
54 | 'mocha/valid-test-description': 'off'
|
55 | }
|
56 | }
|
57 | }
|
58 | };
|