Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
basicdays opened this issue May 2, 2023 · 2 comments
Closed

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

basicdays opened this issue May 2, 2023 · 2 comments

Comments

@basicdays
Copy link

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
Copy link
Owner

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
Copy link
Owner

Available in 0.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants