consistent-type-exports
Configuration
rslint.config.ts
Rule Details
Enforce consistent usage of type exports. TypeScript allows marking exports as type-only using export type, which is erased at compile time and results in no runtime code. This rule enforces that type-only exports use the export type syntax.
When all exports in a declaration are types, the entire declaration should use export type. When a declaration contains a mix of type and value exports, the rule can suggest using inline type specifiers.
Examples of incorrect code for this rule:
Examples of correct code for this rule: