Skip to content

es-x/no-shadow-catch-param

disallow identifiers from shadowing catch parameter names

This rule reports identifiers from shadowing catch parameter names as errors.

See Annex B - VariableStatements in Catch Blocks.

💡 Examples

⛔ Examples of incorrect code for this rule:

Now loading...

🚀 Version

This rule was introduced in v5.1.0.

📚 References