Awesome Open Source
Awesome Open Source

NPM Version GitHub Actions status Coverage Status Peer Dependencies NPM Downloads


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": [

Recommended config

This plugin exports a recommended config that enforces good practices.

Enable it with the extends option:

  "extends": [

See Configuring Eslint on for more info.

Rules documentation

The documentation of the rules can be found here.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (60,666
eslint (202
mocha (84
eslint-plugin (33

Find Open Source By Browsing 7,000 Topics Across 59 Categories