Don't print an error on unused params in ES5 setters #2133
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
enhancement
This change enhances an existing feature of ESLint
rule
Relates to ESLint's core rules
The following code:
triggers the error:
In ES5 setters parameter is required, though and you can imagine a scenario where you want to use a setter without using the parameter.
This is similar to
try {...} catch (e) {}
where you need the parameter as well even if you don't need it. ESLint doesn't error on unusedcatch
parameter.The example was run on http://eslint.org/demo/.
The text was updated successfully, but these errors were encountered: