ITADN

Consider enabling @typescript-eslint/no-import-type-side-effects

#97Openspence-s 创建于 2025-11-03
S
spence-scommented
Currently `@typescript-eslint/consistent-type-imports` auto fixes all `type` imports to be inline. If an import only includes type imports this will result in an empty module import. https://typescript-eslint.io/rules/no-import-type-side-effects This rule seems to be complimentary to `consistent-type-imports` and doesn't conflict but adds extra safety when the `verbatimModuleSyntax` ts config flag is turned on.
3 条评论