The rule only flags named parameters and not the arguments object. I don't
believe we have another rule that does what you ask. If you'd like to
request a change, please open an issue on GitHub.

-N

On Fri, Mar 4, 2016, 1:02 AM Jose Antonio Corachán <[email protected]>
wrote:

> We have found a small issue using the above rule.
>
> For example, if we write something like this:
>
>
> var testArguments = function(id){
> console.log(id); //Something
> arguments[0] = "Test";
> console.log(id); // Test
> }
> testArguments("Something");
>
>
>
> I'd expect the rule to capture the problem, and not allow me to reassign
> arguments inside of the function.
>
> Is there another rule to capture this problem?
>
> Our rule is:
>
> no-param-reassign": [ 2 ]
>
> Our es-lint version is v1.10.3.
>
> Thanks,
>
> Jose
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to