Do not name two arguments with the same name inside of a functions arguments.
function foo(bar, baz, qux) {}
function foo(bar, baz, bar) {}
Naming two arguments with the same name in strict mode will cause a SyntaxError
- so this rule serves as an early warning for you. Outside of strict mode, the right-most argument will override the value of all other arguments with the same name - which is obviously bad news.
There's not really ever a reason to disable this rule. Duplicate argument names are just bad news for your code. However, if you really want to disable it in your project:
"eslintConfig": {
"extends": ["strict/es5"],
"rules": {
"no-dupe-args": 0
}
}