Skip to content

Commit 287d0a1

Browse files
committed
Enable consistent-type-imports typescript eslint rule
Some background on this rule: https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/ Originally this was just for matrix-js-sdk: matrix-org/matrix-js-sdk#4611
1 parent a1ce5fb commit 287d0a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

typescript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@ module.exports = {
9797

9898
// Prevent invalid non-type re-exports of types, these can cause downstream build failures
9999
"@typescript-eslint/consistent-type-exports": ["error"],
100+
101+
// Prevent unnecessary runtime dependencies between files
102+
"@typescript-eslint/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
100103
},
101104
};

0 commit comments

Comments
 (0)