eslint-config-mocha
ESLint config for mochajs projects
Summary
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
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
)
Usage
Assuming a JSON ESLint config, add the following to the root .eslintrc.json
:
For ES6 Modules
If using ES6 modules, instead:
For Tests
In your test/.eslintrc.json
, try this:
License
Copyright © 2016 Christopher Hiller Licensed under the ISC license.