-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Closed
Description
1- This rule's "Do not reassign parameters" part should be split into another rule, because reassigning a parameter isn't actually mutation.
Plus it sounds like no-param-reassign
rule also covers mutation, but it doesn't. It would be nice to easily see what gets covered by ESLint and what doesn't.
2- Why shouldn't we reassign parameters?
Overwriting parameters can lead to unexpected behavior, especially when accessing the arguments object.
Accessing arguments
is already discouraged. Should we really care about breaking something we aren't supposed to use? What are other unexpected behaviors can this cause?
noelzubin, cben, jaquinocode and KuvonchbekN
Metadata
Metadata
Assignees
Labels
No labels