Closed
Description
Description
I would like to propose an extension to the existing consistent-type-imports
rule. This is linked to the work done in #4237
I think it would be beneficial for people who are interested in adopting the new inline type import syntax introduced in Typescript 4.5. We can introduce a flag, for example preferInlineTypeImports?: boolean
.
Like @bradzacher mentioned, it's tricky to do a fixer, so we don't need it for now, but at least a way to warn people about violation would be great.
Fail
import type { c } from './c';
import { a } from './a';
import type { b } from './a';
Pass
import type { c } from './c';
import { a, type b } from './a';
Let me know what you think about this. If you give me a green light, I think if I can try working on this feature.