Replies: 2 comments
-
None of the “false negatives” you listed are reassignments though; they’re mutations of the parameter. While I agree a lint rule for that might be useful, I don’t think it should be covered by Maybe a |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not a bug, this is an intentional behavior of the rule. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment information
Rule name
lint/style/noParameterAssign
Playground link
https://biomejs.dev/playground/?code=LwAvACAAdABoAGkAcwAgAHQAaAByAG8AdwBzACAAbgBvAFAAYQByAGEAbQBlAHQAZQByAEEAcwBzAGkAZwBuAAoAZgB1AG4AYwB0AGkAbwBuACAAYgBhAHIAKABmAG8AbwApACAAewAKACAAIABmAG8AbwAgAD0AIAAnAGYAbwBvACcAOwAKAH0ACgAKAC8ALwAgAHQAaABlAHMAZQAgAHMAaABvAHUAbABkACAAYQBsAHMAbwAgAHQAaAByAG8AdwAgAG4AbwBQAGEAcgBhAG0AZQB0AGUAcgBBAHMAcwBpAGcAbgAgAAoAZgB1AG4AYwB0AGkAbwBuACAAdABlAHMAdAAxACgAYgBhAHIAKQAgAHsACgAgACAAYgBhAHIALgBwAHIAbwBwACAAPQAgACIAdgBhAGwAdQBlACIAOwAKAH0ACgBmAHUAbgBjAHQAaQBvAG4AIAB0AGUAcwB0ADIAKABiAGEAcgApACAAewAKACAAIABkAGUAbABlAHQAZQAgAGIAYQByAC4AYQBhAGEAOwAKAH0ACgBmAHUAbgBjAHQAaQBvAG4AIAB0AGUAcwB0ADMAKABiAGEAcgApACAAewAKACAAIABiAGEAcgAuAGEAYQBhACsAKwA7AAoAfQAKAGYAdQBuAGMAdABpAG8AbgAgAHQAZQBzAHQANAAoAGIAYQByACkAIAB7AAoAIAAgAGIAYQByAFsAMABdACAAPQAgACIAdgBhAGwAdQBlACIAOwAKAH0ACgBmAHUAbgBjAHQAaQBvAG4AIAB0AGUAcwB0ADUAKABiAGEAcgApACAAewAKACAAIABiAGEAcgAuAHAAdQBzAGgAKAAiAHYAYQBsAHUAZQAiACkAOwAKACAAIABiAGEAcgAuAHAAbwBwACgAIgB2AGEAbAB1AGUAIgApADsACgB9AA%3D%3D
Expected result
Should lint same cases like eslint no-param-reassign.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions