|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # selector-attribute-name-disallowed-list
-
- Specify a list of disallowed attribute names.
-
- <!-- prettier-ignore -->
- ```css
- [class~="foo"] {}
- /** ↑
- * This name */
- ```
-
- ## Options
-
- `array|string|regex`: `["array", "of", /names/ or "regex"]|"name"|/regex/`
-
- Given:
-
- ```
- ["class", "id", "/^data-/"]
- ```
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- [class*="foo"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [id~="bar"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [data-foo*="bar"] {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- [lang~="en-us"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [target="_blank"] {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- [href$=".bar"] {}
- ```
|