Implement functionality equivalent to eslint-plugin-react-refresh
#2548
Closed
GunseiKPaseri
started this conversation in
Ideas
Replies: 4 comments 4 replies
-
this is the one plugin blocking me from updating everything to biome right now. |
Beta Was this translation helpful? Give feedback.
1 reply
-
is there an issue ticket for this? it would be awesome to add this |
Beta Was this translation helpful? Give feedback.
1 reply
-
@ematipico Can I try it? |
Beta Was this translation helpful? Give feedback.
2 replies
-
#3560 has been merged and published! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
from #3 (reply in thread)
react-refresh
react-refresh is an official package of react that provides bundler with a Fast Refresh feature that allows real-time updates of running React apps.
In addition to react-native, next.js, @vitejs/plugin-react and @parcel/runtime-react-refresh are often used behind the scenes in development environments.
It is a so-called hot reload, but it is characterized by the fact that only edited components can be updated minute by minute while maintaining the state.
For more detailed information, please refer to the documentation of each bundler.
eslint-plugin-react-refresh
eslint-plugin-react-refresh is a plugin also linked from @vitejs/plugin-react that defines rules to make react-refresh function properly.
One rule,
react-refresh/only-export-components
, contains the followinguseNamingConvention
(See ✅ Linter rules from other sources #3 (comment))const CMS = () => <></>; export { CMS }
export *
(in JSX)In addition, the following, although not implemented, would be nice to have
I would like your input on implementing these in Biome.
Beta Was this translation helpful? Give feedback.
All reactions