eastwood
v6.0.0
Published
Eslint config installer
Downloads
14
Maintainers
Readme
Eastwood
Eastwood aims to provide simple setup of ESLint and editor configurations. 3.0.0+ correctly installs packages as devDependencies.
Installation & Use
npm install -g eastwood
eastwood airbnb
ESLint allows extending or overriding the .eslintrc
file per directory.
With the --here
flag, Eastwood will install any required packages, but only add the appropriate .eslintrc
to the current directory.
eastwood react-app
cd lib
eastwood airbnb --here
Internal Rulesets
airbnb
- The Airbnb Style Guide as provided by eslint-config-airbnb.airbnb-base
- Airbnb without React support as provided by eslint-config-airbnb-base.google
- The Google Style Guide as provided by eslint-config-google.react-app
- The style from the Create React App as provided by eslint-config-react-app.standard
- The Standard Style Guide using the standard package.standard-eslint
- The Standard Style Guide as provided by eslint-config-standard.
If no ruleset is provided, airbnb
is used as default.
External Rulesets
Rulesets not in the internal list will cause Eastwood to check for a npm package prefixed with eastwood-config-
.
eastwood-config-example
has been created to demonstrate this.
npm install --save-dev eastwood-config-example
eastwood example
Configs also work with the --here
flag.
Currently, the package must be in the local npm_modules
folder. Support for globally installed modules is planned.
Plans
- Support checks for globally installed
eastwood-config-*
packages - Writing an
.eslintrc
to the local directory - Updating
.eslintrc
rather than just an initial write. - Updating
.editorconfig
rather than just an initial write.
And maybe:
- Prettier?
- Who knows?