no-dupe-args
eslint
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"no-dupe-args": "error",
},
},
];function foo(a, b, a) {
console.log("value of the second a:", a);
}
const bar = function (a, b, a) {
console.log("value of the second a:", a);
};function foo(a, b, c) {
console.log(a, b, c);
}
const bar = function (a, b, c) {
console.log(a, b, c);
};Examples from the ESLint documentation.
no-dupe-args
eslint
export default [
{
rules: {
"no-dupe-args": "error",
},
},
];Oxlint does not have this rule.
suspicious/noDuplicateParameters
suspicious · since 1.0.0
{
"linter": {
"rules": {
"suspicious": {
"noDuplicateParameters": "error"
}
}
}
}Disallow lexical declarations in case clauses
Disallow multiple spaces in regular expressions
Disallow calling some Object.prototype methods directly on objects
Disallow fallthrough of case statements
Require const declarations for variables that are never reassigned after declared