-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
📎 Implement eslint-plugin-react-refresh
#3560
Comments
|
Note that while TypeScript is strict about requiring a |
Unfortunately Biome migration tool doesn't support a source to be associated to several Biome rules. Thus, for now, it is not possible to do that.
Could you explain the reasoning behind this choice?
If the function is quite specific, you can just make it public in one of the rule (
|
mmm...
In detecting React components, only the name is used, which can lead to false positives. The original lint rule was implemented to avoid this issue. |
Although, it could be fairly easy to change how we generate migrate and website pages to allow this. |
Description
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.
Rule
react-refresh/only-export-components
is too large.Already implemented
noReExportAll
noDefaultExport
I plan to implement it.
useComponentExportOnlyModules
#3576The following are not included in the current lint rules, but they are desired for future implementation.
useNamingConvention
noClassComponent
more info: #2548
The text was updated successfully, but these errors were encountered: