Skip to content

Commit

Permalink
💅 Add eslint-plugin-mocha rules
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Jan 24, 2018
1 parent 2b95720 commit f35ecbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
@@ -1,3 +1,4 @@
{
"extends": "./index.js"
"extends": "./index.js",
"plugins": ["mocha"]
}
13 changes: 13 additions & 0 deletions index.js
Expand Up @@ -10,5 +10,18 @@ module.exports = {
'no-tabs': 'off',

'import/order': 'error',

'mocha/handle-done-callback': 'error',
'mocha/max-top-level-suites': 'warn',
'mocha/no-exclusive-tests': 'error',
'mocha/no-global-tests': 'error',
'mocha/no-identical-title': 'error',
'mocha/no-nested-tests': 'error',
'mocha/no-pending-tests': 'error',
'mocha/no-return-and-callback': 'error',
'mocha/no-sibling-hooks': 'error',
'mocha/no-skipped-tests': 'error',
'mocha/no-synchronous-tests': 'error',
'mocha/no-top-level-hooks': 'error',
},
};

0 comments on commit f35ecbe

Please sign in to comment.