1 |
|
2 |
|
3 | module.exports = {
|
4 | plugins: [
|
5 | 'eslint-plugin-mocha'
|
6 | ],
|
7 | env: {
|
8 | mocha: true
|
9 | },
|
10 | rules: {
|
11 | 'mocha/no-exclusive-tests': 2, // Prevent .only tests
|
12 | 'mocha/handle-done-callback': 2, // Handle the done callback
|
13 | 'mocha/no-synchronous-tests': 2, // Disallow Synchronous Tests (when done is passed in)
|
14 | 'mocha/no-global-tests': 2 // Disallow global tests
|
15 | }
|
16 | }
|