ArnaudBarre / eslint-plugin-react-refresh

Validate that your components can safely be updated with Fast Refresh
MIT License
206 stars 13 forks source link

Add option for allowList of export names #29

Closed aaronadamsCA closed 12 months ago

aaronadamsCA commented 1 year ago

Remix adds special handling of specific named exports to make them work with Fast Refresh.

I'd like to be able to pass this plugin a config like { allowExportNames: ["meta", "links", "headers", "loader", "action"] } so I can make sure my Remix route components are compatible with Fast Refresh.

ArnaudBarre commented 1 year ago

Cool to this that! I will work on that this week!

ArnaudBarre commented 12 months ago

Released in v0.4.4

aaronadamsCA commented 12 months ago

Thank you, it works perfectly! 🎉