Monorepo provides extensible configs for eslint.
Currently, there are 2 available configurations:
@ofadiman/eslint-config-base- Configuration suitable forNodeJSandReactJSdevelopment.@ofadiman/eslint-config-react- Extended configuration suitable forReactJSdevelopment.
To install one of the configs just run the following command:
npx install-peerdeeps eslint-config-baseThis 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
ReactJSalready has a base config listed in its peer dependencies, so you don't have to install it manually.