Skip to content

Commit 560cc2d

Browse files
committed
fix: correct argument order in isUseCall function
1 parent 6df0d47 commit 560cc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-use-in-try-catch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default createRule<[], MessageID>({
3232
if (!context.sourceCode.text.includes("try")) return {};
3333
return {
3434
CallExpression(node) {
35-
if (!isUseCall(node, context)) return;
35+
if (!isUseCall(context, node)) return;
3636
const tryCatchOrFunction = AST.findParentNode(node, (n) => {
3737
return n.type === T.TryStatement || AST.isFunction(n);
3838
});

0 commit comments

Comments
 (0)