You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| README.md | 2 weeks ago | |
| index.js | 2 weeks ago | |
README.md
selector-disallowed-list
Specify a list of disallowed selectors.
.foo > .bar
/** ↑
* This is selector */
Options
array|string|regexp: ["array", "of", "selectors", /or/, "/regex/"]|"selector"|"/regex/"
If a string is surrounded with "/" (e.g. "/\.foo/"), it is interpreted as a regular expression.
Given:
["a > .foo", /\[data-.+]/]
The following patterns are considered violations:
a > .foo {}
a[data-auto="1"] {}
.foo, [data-auto="1"] {}
The following patterns are not considered violations:
.foo {}
a
>
.foo {}
.bar > a > .foo {}
.data-auto {}
a[href] {}