selector-attribute-operator-allowed-list
Specify a list of allowed attribute operators.
[target="_blank"] {}/** ↑ * This operator */Use this rule to enforce a subset of attribute operators as a convention. For example, allow only =, ~= and |= to match whole values.
This rule supports 1 message argument: the disallowed attribute operator.
Options
Section titled “Options”Array<string>
Section titled “Array<string>”["array", "of", "attribute-operators"]Given:
{ "selector-attribute-operator-allowed-list": ["=", "|="]}The following patterns are considered problems:
[class*="test"] {}[title~="flower"] {}[class^="top"] {}The following patterns are not considered problems:
[target] {}[target="_blank"] {}[class|="top"] {}