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

Ignored tsconfig when targeting file #58821

Closed
lveillard opened this issue Jun 10, 2024 · 2 comments
Closed

Ignored tsconfig when targeting file #58821

lveillard opened this issue Jun 10, 2024 · 2 comments

Comments

@lveillard
Copy link

πŸ”Ž Search Terms

I found this issue but is closed:
#6591

πŸ•— Version & Regression Information

Always

⏯ Playground Link

No response

πŸ’» Code

This breaks lint-staged behaviour in monorepos as lint-staged picks individually the staged files before being commited

πŸ™ Actual behavior

running

tsc --noEmit --pretty 

targeting an specific folder, ignores the tsconfig. And there is no way to pass it as a project

πŸ™‚ Expected behavior

Either grab the tsconfig.ts from the current path, or at least dont block us from manually pointing to a tsconfig.file using -project

Additional information about the issue

No response

@MartinJohns
Copy link
Contributor

This is working as intended and documented: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

When input files are specified on the command line, tsconfig.json files are ignored.

You want #27379.

@lveillard
Copy link
Author

Ah YES! Thanks closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants