How to add eslint plugins? #769
-
I've used this awesome template for a project and it's running smoothly. However now I'm trying to add a few linter plugins to improve my code and running To apply the linter plugins I've installed the plugins as dev dependencies and in my renderer package's eslintrc I've added:
When I run
Ok, let's do that. I'm adding this line to the parserOptions of the same eslintrc. When i run the linter now, it's complaining about missing tsconfig file in the root folder of the project?! That puzzles me. I've tried adding a tsconfig.json in the root folder. Basically I just copied the one from main and changed the include and exclude paths to adjust to the new place like so.
However that resulted in the linter complaining about all sorts of files that actually shouldn't be linted (like the tests and everything in the script folder). I tried adding the script folder to the exlude array with no result.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Have you tried to specify the path to the config inside the render |
Beta Was this translation helpful? Give feedback.
Have you tried to specify the path to the config inside the render
"project": "./packages/renderer/tsconfig.json"
?