|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # selector-attribute-operator-allowed-list
-
- Specify a list of allowed attribute operators.
-
- <!-- prettier-ignore -->
- ```css
- [target="_blank"] {}
- /** ↑
- * This operator */
- ```
-
- ## Options
-
- `array|string`: `["array", "of", "operators"]|"operator"`
-
- Given:
-
- ```
- ["=", "|="]
- ```
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- [class*="test"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [title~="flower"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [class^="top"] {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- [target] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [target="_blank"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [class|="top"] {}
- ```
|