Skip to content

Commit

Permalink
Enable consistent-type-imports typescript eslint rule
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hughns committed Jan 14, 2025
1 parent a1ce5fb commit 287d0a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
},
};

0 comments on commit 287d0a1

Please sign in to comment.