We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd788a commit 16dffb2Copy full SHA for 16dffb2
1 file changed
packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
@@ -1630,7 +1630,7 @@ const tests = {
1630
}, 1000);
1631
return () => clearInterval(id);
1632
}, [setCount]);
1633
-
+
1634
return <h1>{count}</h1>;
1635
}
1636
`,
@@ -7704,6 +7704,15 @@ const testsTypescript = {
7704
7705
7706
},
7707
+ {
7708
+ code: normalizeIndent`
7709
+ function useMyThing<T>(): void {
7710
+ useEffect(() => {
7711
+ let foo: T;
7712
+ }, []);
7713
+ }
7714
+ `,
7715
+ },
7716
],
7717
invalid: [
7718
{
0 commit comments