ESLint with monorepo #4969
Unanswered
manuel-arguelles
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been unable to get ESLint to work in a monorepo with typescript. The layout is similar to this:
I always get
Parsing error: Cannot read file 'tsconfig.json'.If I dolsp-disconnectI get the warnings from javascript-eslint which makes me think that the problem is with lsp/eslint and not the configuration, relevant configuration is:I have tried changing the tsconfigRootDir to __dirname or a function that returns __dirname but the only difference is that the error message now includes the path of the project:
Parsing error: Cannot read file '/myhome/project/tsconfig.json'.Is ESLint the actual lsp server for js/ts linter or is there another one that I could try? I also tried setting
lsp-eslint-working-directoriesbut without luck...Beta Was this translation helpful? Give feedback.
All reactions