Skip to content

Shareable eslint config enforcing our `lint` and style convention for the `mocha` test framework.

License

Notifications You must be signed in to change notification settings

dwp/eslint-config-mocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Mike Shaw
Mar 16, 2021
147e575 · Mar 16, 2021
Dec 7, 2018
Mar 12, 2021
Dec 7, 2018
Sep 16, 2020
May 2, 2018
May 2, 2018
Feb 26, 2021
Dec 7, 2018
Dec 7, 2018
Feb 26, 2021
May 2, 2018
Mar 16, 2021
Sep 16, 2020
Mar 1, 2021
Dec 7, 2018
May 2, 2018
Dec 7, 2018
Jan 30, 2020
Mar 16, 2021
Mar 16, 2021
Feb 28, 2020

Repository files navigation

@dwp/eslint-config-mocha

Shareable eslint config enforcing our lint and style convention for the mocha test framework.

Getting started

npm install --save-dev @dwp/eslint-config-mocha eslint

Rules

Add an .eslintrc.js file that looks something like:

module.exports = require('@dwp/eslint-config-mocha');

You can add your own rules to enhance this, but in doing so please ensure you don't weaken the baseline ruleset.

Don't use .eslintrc (low precedence) or package.json (even lower, and just plain bad!), lest you incur the wrath of a patient adversary.

Linting

Add eslint to your test suite like this, or see our package.json for an example of how we do it:

  "test": "eslint ."

About

Shareable eslint config enforcing our `lint` and style convention for the `mocha` test framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published