@dwp/eslint-config-jasmine

jasmine configuration for eslint

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
013Jun 12, 2021Jan 12, 2018Minified + gzip package size for @dwp/eslint-config-jasmine in KB

Readme

@dwp/eslint-config-jasmine

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

Getting started

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

Rules

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

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

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 ."

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.