eslint-config-uphold
Uphold-flavored ESLint config.
The rules defined here
extend the eslint-recommended preset,
as well as the overrides
that allow the Prettier pretty-printer to reformat the code without conflicts.
Installation
$ npm install eslint eslint-config-uphold prettier --save-dev
Usage
Create an .eslintrc.yml
file with the following content:
extends: uphold
Add a lint
command to the scripts
section of your package.json
, like so:
{
"scripts": {
"lint": "eslint ."
}
}
and run the linter with:
$ npm run lint
To automatically fix all lint issues, use the --fix
option:
$ npm run lint --fix