Skip to content

Commit 1086da7

Browse files
committed
refactor: minor improvements
1 parent f9442ae commit 1086da7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-nested-components.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
useComponentCollector,
99
useComponentCollectorLegacy,
1010
} from "@eslint-react/core";
11-
import { _ } from "@eslint-react/eff";
1211
import * as JSX from "@eslint-react/jsx";
1312
import type { RuleContext, RuleFeature } from "@eslint-react/shared";
1413
import type { TSESTree } from "@typescript-eslint/types";
@@ -83,7 +82,7 @@ export default createRule<[], MessageID>({
8382
continue;
8483
}
8584
// Do not mark anonymous function components to reduce false positives
86-
if (name === _) {
85+
if (name == null) {
8786
continue;
8887
}
8988
const isInsideProperty = component.parent.type === T.Property;

0 commit comments

Comments
 (0)