ArnaudBarre / eslint-plugin-react-refresh

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

Modern eslint.config.js support #42

Closed yy-do-it closed 3 months ago

yy-do-it commented 4 months ago

It would've been nice if react-refresh plugin would support new es module config.

зображення

Kiyozz commented 3 months ago

To use this plugin (v0.4.6), I had to use @eslint/eslintrc package for eslintrc config format compatibility.

I'll suggest "ESLint 9 Flat Config support" for the issue title

ArnaudBarre commented 3 months ago

I tested again and the from the documentation is working, probably you forgot to add 'react-refresh': reactRefresh, to the plugins object.

Kiyozz commented 3 months ago

My bad, I meant "react-hooks" not react-refresh! Wrong repo