no-dupe-args
Configuration
rslint.config.ts
Rule Details
Disallow duplicate arguments in function definitions. If more than one parameter has the same name in a function definition, the last occurrence "shadows" the preceding ones.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Differences from ESLint
When a parameter name appears more than twice (e.g., function foo(a, a, a)), rslint reports an error on each duplicate occurrence (2 errors), while ESLint reports only once per duplicated name (1 error). This provides more precise diagnostic locations.