tree: 9b238a4ee8f9404483d95d047908833ba1880a92 [path history] [tgz]
  1. lib/
  2. CHANGELOG.md
  3. index.js
  4. LICENSE
  5. package.json
  6. README.md
node_modules/eslint-plugin-mocha/README.md

NPM Version Build Status Coverage Status Peer Dependencies NPM Downloads

eslint-plugin-mocha

ESLint rules for mocha.

Install and configure

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"
  ],
}

Recommended config

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.

Rules documentation

The documentation of the rules can be found here.