In my main .eslintrc.json
file, I have set up some rules. This file contains:
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "react", "@typescript-eslint", "prettier"],
"extends": [
"plugin:react/recommended",
"google",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
// Rules go here
},
"overrides": [
// Overrides settings
]
}
One of my projects has a local .eslintrc.json
file that should inherit rules from the root one. However, for some reason, the rules are not being applied. The content of this file is as follows:
{
"extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"rules": {
// Rules should be inherited
}
}
This issue is causing me to manually duplicate the rules from the main file to the project-specific file which is far from ideal. If anyone can help identify what I might be doing wrong, I would greatly appreciate it.