@sensebox/eslint-config-sensebox
v1.1.1
Published
Use this package for consistent linting and formatting throughout all senseBox projects.
Downloads
90
Keywords
Readme
@sensebox/eslint-config-senseBox
Use this package for consistent linting and formatting throughout all senseBox projects.
Usage
Install the following packages:
Yarn
yarn add --tilde --dev @sensebox/eslint-config-sensebox [email protected]
NPM
npm install --save-dev @sensebox/eslint-config-sensebox [email protected]
Add a .eslintrc.js
to your project where you specify this package in the extends
key
module.exports = {
extends: ['@sensebox/eslint-config-sensebox']
};
Add a lint
script to your package.json
{
...
"scripts": {
...
"lint": "eslint --fix \"{src,test,.scripts,whatever}/**/*.js\""
}
}
Run yarn lint
or npm run lint