ESLint rules for mocha.
This plugin requires ESLint 4.0.0
or later.
npm install --save-dev eslint-plugin-mocha
Then add a reference to this plugin and selected rules in your eslint config:
{
"plugins": [
"mocha"
],
}
This plugin exports a recommended config that enforces good practices.
Enable it with the extends option:
{
"extends": [
"plugin:mocha/recommended"
],
}
See Configuring Eslint on eslint.org for more info.
The documentation of the rules can be found here.