eslint-config-particle
v2.5.0
Published
eslint config rules for Particle projects
Downloads
3,866
Readme
eslint-config-particle
eslint config rules for Particle Javascript projects
Enforcing style rules in a Particle project
- Install dependencies
npm install --save-dev eslint eslint-config-particle
- Tell eslint to use the Particle config by creating
.eslintrc.js
module.exports = {
extends: ['eslint-config-particle'],
root: true
}
- Add lint scripts to
package.json
"scripts": {
"lint": "eslint . --quiet -f unix",
"lint:fix": "eslint . --quiet --fix -f unix",
}
- Run lint as part of the CI pipeline, for example by adding to
.travis.yml
script:
- npm run lint && npm test