Monorepo provides extensible configs for eslint.
Currently, there are 2 available configurations:
@ofadiman/eslint-config-base
- Configuration suitable forNodeJS
andReactJS
development.@ofadiman/eslint-config-react
- Extended configuration suitable forReactJS
development.
To install one of the configs just run the following command:
npx install-peerdeeps eslint-config-base
This will install the config itself and all its dependencies.
To use the installed config, just add its name to extends
field in your eslint configuration file:
module.exports = {
extends: ['@ofadiman/eslint-config-base']
}
- The config for
ReactJS
already has a base config listed in its peer dependencies, so you don't have to install it manually.