I have an .eslintrc.base.js with the following configuration:
module.exports = {
env: {
browser: true,
node: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'prettier'
],
// ...
}
Most sub-packages in my project inherit this and just add to the rules or modify a couple of rules.
For one package though, I'd like to omit plugin:react/recommended, which the base config extends.
Is this possible? Or do I need to create an additional layer of config files, something like this:
.eslintrc.base.js: as it is now, but withoutplugin:react/recommended.eslintrc.base.react.js: extends base config, adding react elements<package>/.eslintrc.js: extends either.eslintrc.baseor.eslintrc.base.react