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

Let isolated declarations fixer add toplevel imports more #60267

Conversation

benjaminjkraft
Copy link
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!

Fixes microsoft#60266.
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Oct 18, 2024
@benjaminjkraft
Copy link
Contributor Author

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

@benjaminjkraft
Copy link
Contributor Author

benjaminjkraft commented Oct 23, 2024

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

Copy link
Member

@jakebailey jakebailey left a comment

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... @andrewbranch Do you have any knowledge here?

@andrewbranch andrewbranch merged commit c043944 into microsoft:main Nov 13, 2024
32 checks passed
@benjaminjkraft benjaminjkraft deleted the isolated-declarations-autofix-imports branch November 13, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

isolatedDeclarations fixer inserts unnecessary inline imports
4 participants