2.5.0 • Published 3 years ago

eslint-config-particle v2.5.0

Weekly downloads
789
License
MIT
Repository
github
Last release
3 years ago

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
2.5.0

3 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.4.0-rc.1

4 years ago

2.3.0

4 years ago

2.2.2

4 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago