Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

eslint-plugin-mocha

6.3.0 • Public • Published

NPM Version GitHub Actions 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.

Install

npm i eslint-plugin-mocha

DownloadsWeekly Downloads

353,444

Version

6.3.0

License

MIT

Unpacked Size

75.6 kB

Total Files

28

Last publish

Collaborators

  • avatar
  • avatar
  • avatar