Describe the feature
Currently, @typescript-eslint/consistent-type-imports is set as the typescript-eslint rule.
|
'@typescript-eslint/consistent-type-imports': ['error', { |
|
disallowTypeAnnotations: false, |
|
prefer: 'type-imports', |
|
}], |
Since fixStyle is not specified, I think fixStyle: separate-type-imports will be applied.
I would like to suggest enabling @typescript-eslint/no-import-type-side-effects along with fixStyle: separate-type-imports being applied.
By adding this rule, it is possible to suppress variations in separate-type-imports and inline-type-imports on the user side.
However, I think whether to add a rule that disallows inline types to the official ESLint rules is an issue that requires discussion.
Additional information
Final checks
Describe the feature
Currently,
@typescript-eslint/consistent-type-importsis set as the typescript-eslint rule.eslint/packages/eslint-config/src/flat/configs/typescript.ts
Lines 64 to 67 in 1352078
Since fixStyle is not specified, I think
fixStyle: separate-type-importswill be applied.I would like to suggest enabling
@typescript-eslint/no-import-type-side-effectsalong withfixStyle: separate-type-importsbeing applied.By adding this rule, it is possible to suppress variations in
separate-type-importsandinline-type-importson the user side.However, I think whether to add a rule that disallows inline types to the official ESLint rules is an issue that requires discussion.
Additional information
Final checks