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

Update rule to prefer import {type X} over import type {X} #64

Closed
fregante opened this issue Nov 8, 2022 · 2 comments
Closed

Update rule to prefer import {type X} over import type {X} #64

fregante opened this issue Nov 8, 2022 · 2 comments

Comments

@fregante
Copy link
Member

fregante commented Nov 8, 2022

The rule has been improved:

I had disabled it until now because the autofix duplicated module imports between regular import value and import type Type. They just added an option to avoid that and instead mark each type independently:

import {value, type Type} from 'lib'
@sindresorhus
Copy link
Member

Ugh. I was fooled to think it was out as it showed on the website.

@fregante
Copy link
Member Author

fregante commented Nov 8, 2022

Sorry, I should have clarified that it was juuuust merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants