ArnaudBarre / eslint-plugin-react-refresh

Validate that your components can safely be updated with fast refresh
MIT License
198 stars 9 forks source link

Allow `export type * from '...'` #12

Closed basicdays closed 1 year ago

basicdays commented 1 year ago

Hey there,

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.

You can see more about it here: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#support-for-export-type-

ArnaudBarre commented 1 year ago

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

ArnaudBarre commented 1 year ago

Available in 0.4.1