Skip to content

Prefer default imports over import = when auto-fixing with esModuleInterop being on - #32521

Closed
Orta Therox (orta) wants to merge 1 commit into
microsoft:masterfrom
orta:esmodule_interop
Closed

Prefer default imports over import = when auto-fixing with esModuleInterop being on #32521
Orta Therox (orta) wants to merge 1 commit into
microsoft:masterfrom
orta:esmodule_interop

Conversation

@orta

Copy link
Copy Markdown
Contributor

Fixes #29038 by short-circuiting the import equals with a default instead.

@orta

Copy link
Copy Markdown
Contributor Author

Chatted with Andrew Branch (@andrewbranch) and we consider this a dupe of #32150 - so I'm closing, as that's got more nuance

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSCode mixes import and require syntaxes on auto-import

2 participants