Skip to content

Commit 8c83679

Browse files
authored
fix: correct logic in naming-convention/component-name validation to continue on valid names, closes #1176 (#1177)
1 parent 8041f45 commit 8c83679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/eslint-plugin-react-naming-convention/src/rules/component-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function create(context: RuleContext<MessageID, Options>): RuleListener {
115115
const id = AST.getFunctionId(component);
116116
if (id?.name == null) continue;
117117
const name = id.name;
118-
if (isValidName(name, options)) return;
118+
if (isValidName(name, options)) continue;
119119
context.report({
120120
messageId: "invalid",
121121
node: id,

0 commit comments

Comments
 (0)