bucharest-gold / entente

A place for open discussion of Node.js middleware at Red Hat, including ideas for projects, collaboration, etc.
Apache License 2.0
5 stars 4 forks source link

Look at semistandard plugins for eslint #16

Closed lance closed 8 years ago

lance commented 8 years ago

Eslint is a more full featured tool than semistandard. We could get semstandard style enforcement using plugins on eslint. Let's figure out the best way to do this.

lance commented 8 years ago

Pretty simple solution...

npm install -D eslint
npm install -D eslint-plugin-promise eslint-plugin-standard eslint-plugin-react 
npm install -D eslint-config-standard
npm install -D eslint-config-semistandard

Then in package.json Add this to your scripts

  "scripts": {
    "lint": "eslint .",
    // whatever else
  }

And run it with npm run lint. Easy peasy.