Description
I am linting my project from two places. Firstly, I run eslint
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 the project
setting to be tsconfig.json
, and tsconfigRootDir
to be .
then I can run eslint
from the shell. And if I set tsconfigRootDir
to be path/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 of project
and tsconfigRootDir
that can't be just concatenated into the project
field, like { "project": "path/to/my/subproject/tsconfig.json" }