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 2aa5f9d commit 19baee8Copy full SHA for 19baee8
packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRule-test.ts
@@ -247,9 +247,10 @@ const tests: CompilerTestCases = {
247
name: 'Pipeline errors are reported',
248
code: normalizeIndent`
249
import useMyEffect from 'useMyEffect';
250
+ import {AUTODEPS} from 'react';
251
function Component({a}) {
252
'use no memo';
- useMyEffect(() => console.log(a.b));
253
+ useMyEffect(() => console.log(a.b), AUTODEPS);
254
return <div>Hello world</div>;
255
}
256
`,
@@ -262,7 +263,7 @@ const tests: CompilerTestCases = {
262
263
source: 'useMyEffect',
264
importSpecifierName: 'default',
265
},
- numRequiredArgs: 1,
266
+ autodepsIndex: 1,
267
268
],
269
0 commit comments