-
Notifications
You must be signed in to change notification settings - Fork 684
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
Add support for group rules #51
Comments
Another thing to keep in mind is that a rule might belong to several groups and could have different configurations in each one. |
@alrra thoughts about how this should work? |
I don't have a good idea yet. :( They should be simple to enable, just like the regular rules. Maybe have them act the same as regular rules? e.g. For a "rules": {
// ...
"manifest": "warning",
// ...
}
Don't know is doing it automatically just based on the category is the best way.
One idea is to have them just like the other rules, but instead of calling const groupRuleConfigs = {
"rule1": {},
"rule2": {
"option1": "value",
"option2": "value",
// ...
},
// ...
}
createGroupRule(groupRuleConfigs); Thoughts? |
@alrra I was thinking more about the scenario you had in mind when you suggested this rule. What specific rule will need to be used in 2 groups with different configurations, and what would those configurations need to be? |
Things are changing in the manifest space, but for now at least the If we think of 2 categories, in the case of let's say (1) |
@molant:
The text was updated successfully, but these errors were encountered: