I’m using linter-eslint in Atom. To build the rules set, I installed globally eslint, and ran eslint --init in my project. Cool.
But building rule sets is HARD! So I prefer to use “extends” sorta like the:
“extends”: “eslint:recommended”
… that is the default used by eslint’s --init.
So that leads to all the great npm "eslint-config"s available on npm:
https://www.npmjs.com/package/eslint-config-defaults
So I’m trying to install airbnb’s rules. I installed Atom’s Linter and Linter-eslint. But how do I install airbnb? It looks like I have to install it in my individual projects … even tho I’m only using it in the editor, not in the project’s workflow. Including yet another version of eslint itself!
Is this true? I have to do:
npm install --save-dev eslint-config-airbnb eslint-plugin-react eslint
… just to have my project be based on airbnb? That’s nuts!
It’s over 20MB to do this due to installing eslint in my project.
Is there a “better way”? Maybe a global install of eslint (fine, needed for eslint --init) along with global installs of airbnb (or standard, … etc)?