Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@ const urlConstantsOverride = {
},
};

export default [...config, urlConstantsOverride];
// Enforce `import type` for type-only imports so the TypeScript compiler can
// fully elide them from the emitted JavaScript. Keeps type and value imports
// distinct, avoids accidental runtime imports / side effects, and plays well
// with bundlers and `isolatedModules`.
const typeImportsOverride = {
files: ["src/**/*.{ts,tsx}"],
rules: {
"@typescript-eslint/consistent-type-imports": "error",
},
};

export default [...config, urlConstantsOverride, typeImportsOverride];
Loading