-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[naming-convention] Support destructured modifier for parameters #2828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
seems reasonable |
…r for `parameter` selector Fixes #2828
@bradzacher I think that this modifier should be supported for |
You can use the array form of selector to specify multiple selectors. |
Yes, but the whole point of group selectors is to be a concise replacement for all the selectors they are equivalent to, so they should support the same modifiers as the individual selectors. Currently, it is possible to use |
Currently,
naming-convention
rule supportsdestructured
modifier only for variables. I propose to also support it for parameters.Repro
Expected Result
The identifier
aNameToBeChecked
matches the rule.Actual Result
The
destructured
modifier isn't supported withselector: "parameter"
, so it doesn't work.Versions
This issue is currently present in the master branch.
The text was updated successfully, but these errors were encountered: