Skip to content

Commit b4f69af

Browse files
committed
feat(typescript): Add @typescript-eslint/no-import-type-side-effects rule
Breaking actually but we never use inline type qualifiers
1 parent c56b08e commit b4f69af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configurations/typescript/rules/typescript.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ module.exports = {
331331
// https://typescript-eslint.io/rules/no-for-in-array
332332
'@typescript-eslint/no-for-in-array': 'error',
333333

334+
// Enforce the use of top-level import type qualifier
335+
// when an import only has specifiers with inline type qualifiers (autofixable).
336+
// https://typescript-eslint.io/rules/no-import-type-side-effects
337+
'+@typescript-eslint/no-import-type-side-effects': 'error',
338+
334339
// Disallow the use of `eval()`-like methods
335340
// https://typescript-eslint.io/rules/no-implied-eval
336341
...extendFromBase('no-implied-eval'),

0 commit comments

Comments
 (0)