Closed nilamsavani closed 4 years ago
The linter eslint
is installed at the root but the plugins are not. Run npm install eslint-plugin-react@latest --save-dev
as suggested in the error message.
So, do I have to install all the plugins that I am using in any of sub project at root level as well?
Yes.
Hi @sudo-suhas ,
Thank you for creating such a great example. I am new to eslint and trying to lint my code using lint-staged package with pre-commit hook. Frontend project is react+ typescript, common is nodejs project and backend is NestJS project. My project structure is as below:
My root package.json is as below:
But, when I try to commit my staged files having linter errors, I am getting an error as below:
What am I doing wrong here?