We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1da791 commit 422aa2eCopy full SHA for 422aa2e
crates/oxc_linter/src/rules/react/jsx_pascal_case.rs
@@ -175,8 +175,9 @@ impl Rule for JsxPascalCase {
175
is_member_expression = true;
176
&member_expr.to_string()
177
}
178
- // Skip checking JSXIdentifier as it starts with a lowercase letter and
179
- // is interpreted as an HTML tag by React
+ JSXElementName::Identifier(id) if !id.name.chars().next().unwrap().is_lowercase() => {
+ id.name.as_str()
180
+ }
181
_ => return,
182
};
183
0 commit comments