You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the nursery rule [`useReactFunctionComponents`](https://biomejs.dev/linter/rules/use-react-function-components/). This rule enforces the preference to use function components instead of class components.
Copy file name to clipboardExpand all lines: crates/biome_analyze/src/rule.rs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,8 @@ pub enum RuleSource {
121
121
EslintReactRefresh(&'staticstr),
122
122
/// Rules from [eslint-react.xyz](https://eslint-react.xyz/)
123
123
EslintReactXyz(&'staticstr),
124
+
/// Rules from [Eslint Plugin React Prefer Function Component](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component)
125
+
ReactPreferFunctionComponent(&'staticstr),
124
126
/// Rules from [Eslint Plugin Solid](https://github.com/solidjs-community/eslint-plugin-solid)
125
127
EslintSolid(&'staticstr),
126
128
/// Rules from [Eslint Plugin Sonar](https://github.com/SonarSource/eslint-plugin-sonarjs)
@@ -178,6 +180,9 @@ impl std::fmt::Display for RuleSource {
0 commit comments