feat(config): add `no-import-type-side-effects` rule of `@typescript-eslint`
shinGangan opened this issue · 1 comments
Describe the feature
Currently, @typescript-eslint/consistent-type-imports
is 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-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
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Hi @antfu , I would appreciate it if you could comment when you have time. 🙏