Skip to content

Commit 6ed3e01

Browse files
committed
fix: correct bind name from 'ietr' to 'iter' in 'no-duplicate-key' rule
1 parent d886656 commit 6ed3e01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-duplicate-key.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ export default createRule<[], MessageID>({
6969
const entry = F.pipe(
7070
O.Do,
7171
O.bind("call", () => AST.traverseUpGuard(jsxElement, AST.isMapCallLoose)),
72-
O.bind("ietr", ({ call }) => AST.traverseUpStop(jsxElement, call, AST.isFunction)),
72+
O.bind("iter", ({ call }) => AST.traverseUpStop(jsxElement, call, AST.isFunction)),
7373
O.bind("arg0", ({ call }) => O.fromNullable(call.arguments[0])),
7474
);
75-
for (const { arg0, call, ietr } of O.toArray(entry)) {
76-
if (AST.unwrapTypeExpression(arg0) !== ietr) continue;
75+
for (const { arg0, call, iter } of O.toArray(entry)) {
76+
if (AST.unwrapTypeExpression(arg0) !== iter) continue;
7777
keyedEntries.set(call, {
7878
hasDuplicate: node.value?.type === AST_NODE_TYPES.Literal,
7979
keys: [node],

0 commit comments

Comments
 (0)