eslint-config-particle

2.5.0 • Public • Published

eslint-config-particle

eslint config rules for Particle Javascript projects

Enforcing style rules in a Particle project

  1. Install dependencies npm install --save-dev eslint eslint-config-particle
  2. Tell eslint to use the Particle config by creating .eslintrc.js
module.exports = {
  extends: ['eslint-config-particle'],
  root: true
}
  1. Add lint scripts to package.json
  "scripts": {
    "lint": "eslint . --quiet -f unix",
    "lint:fix": "eslint . --quiet --fix -f unix",
  }
  1. Run lint as part of the CI pipeline, for example by adding to .travis.yml
script:
- npm run lint && npm test

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-particle

Weekly Downloads

481

Version

2.5.0

License

MIT

Unpacked Size

4.71 kB

Total Files

4

Last publish

Collaborators

  • suda
  • monkbroc
  • particlebot