Skip to content

Dont-Shadow-Arguments

Sourcery rule id: dont-shadow-arguments

Description

Don't shadow arguments.

Match

function foo(name, options, arguments) {
  something();
}

Explanation

Never name a parameter arguments. This will take precedence over the arguments object that is given to every function scope.

From the Airbnb JavaScript Style Guide