UNPKG

stylelint

Version:
48 lines (33 loc) 560 B
# selector-attribute-operator-whitelist Specify a whitelist of allowed attribute operators. ```css a[target="_blank"] { } /** ↑ * These operators */ ``` ## Options `array|string`: `"["array", "of", "operators"]|"operator"` Given: ```js [ "=", "|=" ] ``` The following patterns are considered warnings: ```css [class*="test"] { } ``` ```css [title~="flower"] { } ``` ```css [class^="top"] { } ``` The following patterns are *not* considered warnings: ```css a[target] { } ``` ```css a[target="_blank"] { } ``` ```css [class|="top"] { } ```