Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
I am linting my project from two places. Firstly, I runeslint
in a shell as part of the CI process. This will have a current working directory that is the location of the.eslintrc
file.
I also run the ESLint plugin in VS Code. The current working directory for this is the project root, which is not the same location.
If I set theproject
setting to betsconfig.json
, andtsconfigRootDir
to be.
then I can runeslint
from the shell. And if I settsconfigRootDir
to bepath/to/my/subproject
then I can use the VS code plugin. But there is no possible combination of options that let's both work.
Furthermore,tsconfigRootDir
seems to be entirely redundant anyway, because there is no combination ofproject
andtsconfigRootDir
that can't be just concatenated into theproject
field, like{ "project": "path/to/my/subproject/tsconfig.json" }