We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df0d47 commit 560cc2dCopy full SHA for 560cc2d
packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-use-in-try-catch.ts
@@ -32,7 +32,7 @@ export default createRule<[], MessageID>({
32
if (!context.sourceCode.text.includes("try")) return {};
33
return {
34
CallExpression(node) {
35
- if (!isUseCall(node, context)) return;
+ if (!isUseCall(context, node)) return;
36
const tryCatchOrFunction = AST.findParentNode(node, (n) => {
37
return n.type === T.TryStatement || AST.isFunction(n);
38
});
0 commit comments