[![NPM Version](https://img.shields.io/npm/v/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) [![GitHub Actions status](https://github.com/lo1tuma/eslint-plugin-mocha/workflows/CI/badge.svg)](https://github.com/lo1tuma/eslint-plugin-mocha/actions) [![Coverage Status](https://img.shields.io/coveralls/lo1tuma/eslint-plugin-mocha/master.svg?style=flat)](https://coveralls.io/r/lo1tuma/eslint-plugin-mocha) [![Peer Dependencies](http://img.shields.io/david/peer/lo1tuma/eslint-plugin-mocha.svg?style=flat)](https://david-dm.org/lo1tuma/eslint-plugin-mocha#info=peerDependencies&view=table) [![NPM Downloads](https://img.shields.io/npm/dm/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) # eslint-plugin-mocha ESLint rules for [mocha](http://mochajs.org/). ## Install and configure This plugin requires ESLint `4.0.0` or later. ```bash npm install --save-dev eslint-plugin-mocha ``` Then add a reference to this plugin and selected rules in your eslint config: ```json { "plugins": [ "mocha" ], } ``` ### Recommended config This plugin exports a recommended config that enforces good practices. Enable it with the extends option: ```json { "extends": [ "plugin:mocha/recommended" ], } ``` See [Configuring Eslint](http://eslint.org/docs/user-guide/configuring) on [eslint.org](http://eslint.org) for more info. ## Rules documentation The documentation of the rules [can be found here](docs/rules).