ESLint config for mochajs projects


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
31Oct 31, 2016Mar 26, 2016Minified + gzip package size for @mocha/eslint-config-mocha in KB



ESLint config for mochajs projects


Does nothing remarkable with linting your tests! Intended for use by projects under the Mocha.js GitHub org.

As of this writing, this config is unused by any published project. Except this one, I guess.


Install with npm

$ npm i eslint eslint-config-standard eslint-plugin-import eslint-plugin-promise eslint-plugin-standard eslint-plugin-mocha-only eslint-config-mocha --save-dev

(About ESLint & peerDependencies)


Assuming a JSON ESLint config, add the following to the root .eslintrc.json:

  "extends": "mocha"

For ES6 Modules

If using ES6 modules, instead:

  "extends": "mocha/es6"

For Tests

In your test/.eslintrc.json, try this:

  "extends": "mocha/test"


Copyright (c) 2016 JS Foundation and contributors

Licensed Apache-2.0

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.