Skip to content

Commit

Permalink
Pull in eslint-plugin-mocha and enforce basic test rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed Nov 16, 2019
1 parent c0602f9 commit 85376d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ module.exports = {
ecmaVersion: 2018
},
extends: ['standard', 'prettier', 'prettier/standard'],
plugins: ['mocha'],
env: {
mocha: true
},
rules: {
'mocha/no-exclusive-tests': 'error',
'mocha/no-nested-tests': 'error',
'mocha/no-identical-title': 'error'
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"eslint-config-pretty-standard": "^3.0.1",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha": "^6.2.1",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-standard": "^4.0.1",
Expand Down

0 comments on commit 85376d9

Please sign in to comment.