-
-
Notifications
You must be signed in to change notification settings - Fork 721
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.11.1
What command did you run?
oxlint --fix-dangerously --fix-suggestions
What does your .oxlintrc.json config file look like?
What happened?
const App = () => {
let a = 1;
let b = 2;
let c = 3;
let d = 4;
useEffect(
function () {
console.log(a, b, c, d);
},
[
a,
b,
]
);
return null;
};
After fix the code, it should be
const App = () => {
let a = 1;
let b = 2;
let c = 3;
let d = 4;
useEffect(
function () {
console.log(a, b, c, d);
},
[a, b, c, d]
);
return null;
};
But in reality, it is
const App = () => {
let a = 1;
let b = 2;
let c = 3;
let d = 4;
useEffect(
function () {
console.log(a, b, c, d);
},
[
a,
b d, c,
]
);
return null;
};
miss , between b and d.
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
{ "plugins": ["typescript", "react"], "rules": { "react/exhaustive-deps": "error" }, "ignorePatterns": ["node_modules"] }