Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a different tsconfig.json for linting #107750

Closed
dfee opened this issue Sep 29, 2020 · 5 comments
Closed

Specify a different tsconfig.json for linting #107750

dfee opened this issue Sep 29, 2020 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster *question Issue represents a question, should be posted to StackOverflow (VS Code) typescript Typescript support issues

Comments

@dfee
Copy link

dfee commented Sep 29, 2020

I use a tsconfig.eslint.json for linting – this is picked up in my .eslintrc.js. However, VSCode complains because it's using tsconfig.json to validate my *.test.ts files, which is specifically excluded in tsconfig.json but included in tsconfig.eslint.json.

@vscodebot
Copy link

vscodebot bot commented Sep 29, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@dbaeumer
Copy link
Member

dbaeumer commented Oct 1, 2020

@dfee what does that error look like. Is it a ESLint error or a TS error (the source is denoted in [] in the error)

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Oct 1, 2020
@dfee
Copy link
Author

dfee commented Oct 2, 2020

@dbaeumer Well, I'm not getting any errors in my *.test.ts files because i have:

   "exclude": ["**/__tests__", "dist", "e2e", "node_modules"],

in my tsconfig.json.

If I were able to specify (and i'm using a monorepo – which consistently uses tsonfig.eslint.json), then i'd see the appropriate ts errors.

@dbaeumer
Copy link
Member

dbaeumer commented Oct 9, 2020

This is then a TS problem and has nothing to do with ESLint. To my knowledge users can't control the tsconfig.json file used by the TS language server. @mjbvz is that correct?

@dbaeumer dbaeumer removed their assignment Oct 9, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 12, 2020

Yes we always use files called tsconfig.json. Support for explicit tsconfig names is tracked by microsoft/TypeScript#33094

@mjbvz mjbvz closed this as completed Oct 12, 2020
@mjbvz mjbvz added *question Issue represents a question, should be posted to StackOverflow (VS Code) typescript Typescript support issues labels Oct 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster *question Issue represents a question, should be posted to StackOverflow (VS Code) typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

3 participants