You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this is a bug in TypeScript projects that use allowImportingTsExtensions. In such projects, having a ".js" import is a bug, because the assumption is that our entire application is written in TypeScript, and no JavaScript files will probably ever exist.
Proposal:
Instead of fixing to .js, the rule should auto-fix to .ts when the "tsconfig.json" has the allowImportingTsExtensions option set to true.
What rule do you want to report?
file-extension-in-import
Participation
I am willing to submit a pull request for this issue.