Skip to content

Let isolated declarations fixer add toplevel imports more - #60267

Merged
Andrew Branch (andrewbranch) merged 1 commit into
microsoft:mainfrom
benjaminjkraft:isolated-declarations-autofix-imports
Nov 13, 2024
Merged

Let isolated declarations fixer add toplevel imports more#60267
Andrew Branch (andrewbranch) merged 1 commit into
microsoft:mainfrom
benjaminjkraft:isolated-declarations-autofix-imports

Conversation

@benjaminjkraft

Copy link
Copy Markdown
Contributor

The fixer has a tendency to create inline imports, whereas toplevel imports are almost always more readable. And the code already exists, it's just a matter of using it.

I assume there may be value in applying this in some other places, but this is the one that's bugging me!

Fixes#60266.

The fixer has a tendency to create inline imports, whereas toplevel
imports are almost always more readable. And the code already exists,
it's just a matter of using it.
I assume there may be value in applying this in some other places, but
this is the one that's bugging me!
Fixesmicrosoft#60266.
@typescript-botTypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Oct 18, 2024
@benjaminjkraft

Copy link
Copy Markdown
ContributorAuthor

(My company is reviewing the CLA, will take a few days at minimum.)

@benjaminjkraft

Ben Kraft (benjaminjkraft) commented Oct 23, 2024

Copy link
Copy Markdown
ContributorAuthor

@microsoft-github-policy-service agree company="Notion Labs, Inc."

@jakebaileyJake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems right, I think... Andrew Branch (@andrewbranch) Do you have any knowledge here?

@andrewbranch
Andrew Branch (andrewbranch) merged commit c043944 into microsoft:mainNov 13, 2024
@benjaminjkraft
Ben Kraft (benjaminjkraft) deleted the isolated-declarations-autofix-imports branch November 13, 2024 18:49
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

isolatedDeclarations fixer inserts unnecessary inline imports

5 participants

@benjaminjkraft@andrewbranch@jakebailey@sandersn@typescript-bot