diff --git a/crates/oxc_linter/src/rules/react/no_multi_comp.rs b/crates/oxc_linter/src/rules/react/no_multi_comp.rs index f1cbb21750d6f..73e737cca36a5 100644 --- a/crates/oxc_linter/src/rules/react/no_multi_comp.rs +++ b/crates/oxc_linter/src/rules/react/no_multi_comp.rs @@ -35,12 +35,12 @@ fn no_multi_comp_diagnostic(component_name: &str, span: Span) -> OxcDiagnostic { #[derive(Debug, Default, Clone, Serialize, Deserialize, JsonSchema)] #[serde(rename_all = "camelCase", default, deny_unknown_fields)] struct NoMultiCompConfig { - // When `true`, the rule will ignore stateless components and will allow you to have multiple - // stateless components in the same file. Or one stateful component and one-or-more stateless - // components in the same file. - // - // Stateless basically just means function components, including those created via - // `memo` and `forwardRef`. + /// When `true`, the rule will ignore stateless components and will allow you to have multiple + /// stateless components in the same file. Or one stateful component and one-or-more stateless + /// components in the same file. + /// + /// Stateless basically just means function components, including those created via + /// `memo` and `forwardRef`. ignore_stateless: bool, }