We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ffe910 commit 0b6074fCopy full SHA for 0b6074f
1 file changed
packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
@@ -7774,6 +7774,16 @@ const testsTypescript = {
7774
}
7775
`,
7776
},
7777
+ {
7778
+ code: normalizeIndent`
7779
+ function useMyThing<T>(): void {
7780
+ useEffect(() => {
7781
+ let foo: T;
7782
+ console.log(foo);
7783
+ }, []);
7784
+ }
7785
+ `,
7786
+ },
7787
],
7788
invalid: [
7789
{
0 commit comments