This fixes a bug in the no-unused-vars rule when specifying an argsIgnorePattern. The aim of the pattern is allow unused vars if they start with an underscore, as per the example in the documentation - "argsIgnorePattern": "^_".
Our rule specified "argsIgnorePattern": "^_$" which means that only arguments called _ can be unused, rather than _name-of-arg.
This fixes a bug in the
no-unused-vars
rule when specifying anargsIgnorePattern
. The aim of the pattern is allow unused vars if they start with an underscore, as per the example in the documentation -"argsIgnorePattern": "^_"
.Our rule specified
"argsIgnorePattern": "^_$"
which means that only arguments called_
can be unused, rather than_name-of-arg
.