.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-pseudo-class-whitelist / README.md
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/selector-pseudo-class-whitelist/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/selector-pseudo-class-whitelist/README.md
new file mode 100644 (file)
index 0000000..e4315b0
--- /dev/null
@@ -0,0 +1,47 @@
+# selector-pseudo-class-whitelist
+
+Specify a whitelist of allowed pseudo-class selectors.
+
+```css
+  a:hover {}
+/** ↑
+ * These pseudo-class selectors */
+```
+
+This rule ignores selectors that use variable interpolation e.g. `:#{$variable} {}`.
+
+## Options
+
+`array|string|regex`: `["array", "of", "unprefixed", "pseudo-classes" or "regex"]|"pseudo-class"|/regex/`
+
+If a string is surrounded with `"/"` (e.g. `"/^nth-/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^nth-/` will match `nth-child`, `nth-last-child`, `nth-of-type`, etc.
+
+Given:
+
+```js
+["hover", "/^nth-/"]
+```
+
+The following patterns are considered violations:
+
+```css
+a:focus {}
+```
+
+```css
+a:first-of-type {}
+```
+
+The following patterns are *not* considered violations:
+
+```css
+a:hover {}
+```
+
+```css
+a:nth-of-type(5) {}
+```
+
+```css
+a:nth-child(2) {}
+```