x react(react-compiler): Invariant: Expected a variable declaration
,-[repro.tsx:3:1]
2 |
3 | ,-> function Component() {
4 | | useEffect(() => {
5 | | let i = 0;
6 | | for (; i < 3; i++) {
7 | | console.log(i);
8 | | }
9 | | });
10 | | return null;
11 | `-> }
`----
Found 0 warnings and 1 error.
What version of Oxlint are you using?
1.75.0
What command did you run?
No response
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "categories": { "correctness": "off" }, "plugins": ["react"], "rules": { "react/react-compiler": "error" } }What happened?
Repro
Output
Actual output