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 to suppress the rule on certain file patterns #10

Closed fabioimpe closed 1 year ago

fabioimpe commented 1 year ago

I'm working with Storybook and on stories files a default export is always required. I don't want to clutter every file with the eslint disable rule comment, so it would be awesome to have an option to disable the rule for defined file patterns (eg. *.stories.tsx)

ArnaudBarre commented 1 year ago

Yeah just read the v6 et v7 doc for React, in both case an object export is required. So we can always skip analysing stories files. Available in v0.3.5