mrm-task-eslint
Supports JavaScript and TypeScript.
What it does
- Creates
.eslintrc.json
- Adds an npm script to run ESLint before tests
- Installs dependencies
Usage
npx mrm eslint
Options
See Mrm docs for more details.
eslintPreset
(default: eslint:recommended
)
ESLint preset name (e.g. airbnb
or eslint-config-airbnb
).
eslintPeerDependencies
(optional)
Additional dependencies to install (e.g. ['prettier', 'eslint-plugin-prettier']
).
eslintObsoleteDependencies
(optional)
Dependencies that should be removed (e.g. ['eslint-plugin-prettier']
).
eslintRules
(optional)
Additional rules (e.g. { 'no-undef': 0 }
).
Changelog
The changelog can be found in CHANGELOG.md.
Contributing
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Authors and license
Artem Sapegin and contributors.
MIT License, see the included License.md file.