correctness/noUnusedFunctionParameters
correctness · since 1.8.0
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnusedFunctionParameters": "error"
}
}
}
}function foo(myVar) {
console.log('foo');
}new Promise((accept, reject) => {
window.setTimeout(accept, 1000);
});const squares = [[1, 1], [2, 4], [3, 9], [4, 16]];
squares.filter(([k, v]) => v > 5);function foo(myVar) {
console.log(myVar);
}function foo(_myVar) {}function withObjectSpread({ a, ...rest }) {
return rest;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noUnusedFunctionParameters
correctness · since 1.8.0
{
"linter": {
"rules": {
"correctness": {
"noUnusedFunctionParameters": "error"
}
}
}
}Disallow an unsafe combination of the sandbox attribute.
Disallow An+B formulas that cannot select an element.
Disallow unnecessary escapes in string literals.