You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that this is a valid use case. The blacklist would be pretty hard to implement as regular expression. Combining that with a minimum length makes it even worse.
I'm accepting PRs to add new options for minLength, blacklist and maybe maxLength.
We just need to come to a conclusion whether blacklist should be a string array or a regular expression.
I would like to disallow short variable names and certain keywords.
This should already be possible with a regex, but maybe that could still be added as an option?
Examples where this is useful:
Maybe there should be a way to define exceptions, for example
i
:I also noticed that the rule doesn't seem to trigger for the variable used in the
catch
:try {} catch (e) {}
. Is that intended behavior or a bug?The text was updated successfully, but these errors were encountered: