generator-eslint-config
A Yeoman generator for creating a complete ESLint config.
Installation
First, install Yeoman and generator-esnext-test using npm (we assume you have pre-installed node.js).
npm install -g yonpm install -g generator-eslint-config
Then generate your ESLint configuration:
yo eslint-config
What You Get
The following is installed by this generator (test/.eslintrc
is only installed when the needsTest
option/ prompt is true, and the test directory can be configured with the testDir
option/ prompt):
|-- .eslintrc
|-- .eslintignore
|-- test/
|-- .eslintrc
The generator prompts will take you through setting up your config, including what configuration to extend, what plugins to install, and directories and rules to ignore. The package.json
file is created if it does not exist, and the scripts
property is augmented with a lint
command.
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
License
MIT © Chris Sauve