From 287d0a191448a95d4747cfc82f306c2b0a67328d Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Tue, 14 Jan 2025 10:30:19 +0000 Subject: [PATCH] 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: https://github.com/matrix-org/matrix-js-sdk/pull/4611 --- typescript.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typescript.js b/typescript.js index 4a39db8..b4b19a5 100644 --- a/typescript.js +++ b/typescript.js @@ -97,5 +97,8 @@ module.exports = { // Prevent invalid non-type re-exports of types, these can cause downstream build failures "@typescript-eslint/consistent-type-exports": ["error"], + + // Prevent unnecessary runtime dependencies between files + "@typescript-eslint/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }], }, };