6.0.0 • Published 7 years ago
eastwood v6.0.0
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 airbnbESLint 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 --hereInternal 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 exampleConfigs 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
.eslintrcto the local directory - Updating
.eslintrcrather than just an initial write. - Updating
.editorconfigrather than just an initial write.
And maybe:
- Prettier?
- Who knows?