|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # selector-attribute-operator-blacklist
-
- **_Deprecated: Instead use the [`selector-attribute-operator-disallowed-list`](../selector-attribute-operator-disallowed-list/README.md) rule._**
-
- Specify a list of disallowed 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"] {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- [target] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [target="_blank"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [class|="top"] {}
- ```
|