@@ -420,32 +420,32 @@ source: crates/oxc_linter/src/tester.rs
420420 ╰────
421421 help : Either include it or remove the dependency array .
422422
423- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
423+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
424424 ╭─[exhaustive_deps .tsx :2 :32 ]
425425 1 │ function MyComponent() {
426426 2 │ useEffect (() => {}, [' foo' ]);
427427 · ─────
428428 3 │ }
429429 ╰────
430- help : Extract the expression to a separate variable so it can be statically checked .
430+ help : Remove the literal from the array .
431431
432- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
432+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
433433 ╭─[exhaustive_deps .tsx :4 :15 ]
434434 3 │ console .log (foo , bar , baz );
435435 4 │ }, [' foo' , ' bar' ]);
436436 · ─────
437437 5 │ }
438438 ╰────
439- help : Extract the expression to a separate variable so it can be statically checked .
439+ help : Remove the literal from the array .
440440
441- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
441+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
442442 ╭─[exhaustive_deps .tsx :4 :22 ]
443443 3 │ console .log (foo , bar , baz );
444444 4 │ }, [' foo' , ' bar' ]);
445445 · ─────
446446 5 │ }
447447 ╰────
448- help : Extract the expression to a separate variable so it can be statically checked .
448+ help : Remove the literal from the array .
449449
450450 ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has missing dependencies : ' bar' , ' foo' , and ' baz'
451451 ╭─[exhaustive_deps .tsx :4 :14 ]
@@ -458,32 +458,32 @@ source: crates/oxc_linter/src/tester.rs
458458 ╰────
459459 help : Either include it or remove the dependency array .
460460
461- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
461+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
462462 ╭─[exhaustive_deps .tsx :4 :15 ]
463463 3 │ console .log (foo , bar , baz );
464464 4 │ }, [42 , false , null ]);
465465 · ──
466466 5 │ }
467467 ╰────
468- help : Extract the expression to a separate variable so it can be statically checked .
468+ help : Remove the literal from the array .
469469
470- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
470+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
471471 ╭─[exhaustive_deps .tsx :4 :19 ]
472472 3 │ console .log (foo , bar , baz );
473473 4 │ }, [42 , false , null ]);
474474 · ─────
475475 5 │ }
476476 ╰────
477- help : Extract the expression to a separate variable so it can be statically checked .
477+ help : Remove the literal from the array .
478478
479- ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has a complex expression in the dependency array .
479+ ⚠ eslint - plugin - react - hooks (exhaustive - deps ): The literal is not a valid dependency because it never changes .
480480 ╭─[exhaustive_deps .tsx :4 :26 ]
481481 3 │ console .log (foo , bar , baz );
482482 4 │ }, [42 , false , null ]);
483483 · ────
484484 5 │ }
485485 ╰────
486- help : Extract the expression to a separate variable so it can be statically checked .
486+ help : Remove the literal from the array .
487487
488488 ⚠ eslint - plugin - react - hooks (exhaustive - deps ): React Hook useEffect has missing dependencies : ' bar' , ' foo' , and ' baz'
489489 ╭─[exhaustive_deps .tsx :4 :14 ]
0 commit comments