I'm not familiar enough with react-refresh, but I'm guessing that purely type exports from a tsx file wouldn't impact it at all. Would it be possible to allow the export type * from "./module"; as an optional rule? This is convenient when making things like hook files to re-export types for quality of life purposes.
Yeah type export are not present at runtime so they can safely be ignore. This is simple to add if eslint has already support for this in the AST. I'm looking into it
Hey there,
I'm not familiar enough with
react-refresh
, but I'm guessing that purely type exports from atsx
file wouldn't impact it at all. Would it be possible to allow theexport type * from "./module";
as an optional rule? This is convenient when making things like hook files to re-export types for quality of life purposes.You can see more about it here: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#support-for-export-type-