ESLint cannot find “tsconfig.json”
I’ve encountered this error in my monorepo project where I have sub folders ‘app’ and ‘api’. This doesn’t affect the development and build, but is a paint to our eye and other errors can hide underneath it as well.
--project-folder
--app
--api
You might be have an error displayed of not finding tsconfig.json
. This is the code editor not finding the file. To fix this, (if you are using Visual Studio Code), please add the following settings for your project level configuration.
- Setting
changeProcessCWD
totrue
instructs VSCode to treat the specified directory as the current working directory for ESLint operations.
You might have to add similar config depending upon your code editor.