Skip to content
New issue

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

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

Already on GitHub? # to your account

Warn when tsconfig.json extends a file that contains references #61223

Open
Woodz opened this issue Feb 19, 2025 · 1 comment
Open

Warn when tsconfig.json extends a file that contains references #61223

Woodz opened this issue Feb 19, 2025 · 1 comment
Labels
Declined The issue was declined as something which matches the TypeScript vision Suggestion An idea for TypeScript

Comments

@Woodz
Copy link

Woodz commented Feb 19, 2025

πŸ”Ž Search Terms

tsconfig, extends, references

πŸ•— Version & Regression Information

This is intended behaviour according to https://www.typescriptlang.org/tsconfig/#extends

⏯ Playground Link

No response

πŸ’» Code

// Your code here

πŸ™ Actual behavior

I spent 2 days trying to get tsconfig.json file inheritance working with references. Then I found in the manual:

Currently, the only top-level property that is excluded from inheritance is references.

There was no warning in the command line when I was trying to extend a tsconfig.json file that contained references - instead it was just silently ignored.

πŸ™‚ Expected behavior

Should log a warning when extending a tsconfig.json file that contains references. This warning should explain that references are not inherited so therefore will be ignored

Additional information about the issue

No response

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Declined The issue was declined as something which matches the TypeScript vision labels Feb 24, 2025
@RyanCavanaugh
Copy link
Member

We generally don't do warnings like this unless the config is definitely wrong. It's entirely possible to imagine configurations where you're doing on this on purpose.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Declined The issue was declined as something which matches the TypeScript vision Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants