🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-particle

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-particle

eslint config rules for Particle projects

2.5.0
latest
Source
npm
Version published
Weekly downloads
463
-23.6%
Maintainers
6
Weekly downloads
 
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 13 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts