Skip to content

Commit 422aa2e

Browse files
committed
fix
1 parent e1da791 commit 422aa2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/oxc_linter/src/rules/react/jsx_pascal_case.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ impl Rule for JsxPascalCase {
175175
is_member_expression = true;
176176
&member_expr.to_string()
177177
}
178-
// Skip checking JSXIdentifier as it starts with a lowercase letter and
179-
// is interpreted as an HTML tag by React
178+
JSXElementName::Identifier(id) if !id.name.chars().next().unwrap().is_lowercase() => {
179+
id.name.as_str()
180+
}
180181
_ => return,
181182
};
182183

0 commit comments

Comments
 (0)