Uphold-flavored React ESLint config. Extends eslint-config-uphold
.
$ npm install eslint eslint-config-uphold-react --save-dev
Create an .eslintrc.yml
file with the following:
extends: uphold-react
Add the following script
to your package.json
:
{
"scripts": {
"lint": "eslint ."
}
}
and run the linter with:
$ npm run lint