Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / declaration-property-unit-whitelist / README.md
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/declaration-property-unit-whitelist/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/declaration-property-unit-whitelist/README.md
new file mode 100644 (file)
index 0000000..ed39156
--- /dev/null
@@ -0,0 +1,75 @@
+# declaration-property-unit-whitelist
+
+Specify a whitelist of allowed property and unit pairs within declarations.
+
+```css
+a { width: 100px; }
+/** ↑         ↑
+ * These properties and these units */
+```
+
+## Options
+
+`object`: `{
+  "unprefixed-property-name": ["array", "of", "units"]
+}`
+
+If a property name is surrounded with `"/"` (e.g. `"/^animation/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^animation/` will match `animation`, `animation-duration`, `animation-timing-function`, etc.
+
+Given:
+
+```js
+{
+  "font-size": ["em", "px"],
+  "/^animation/": ["s"],
+  "line-height": []
+}
+```
+
+The following patterns are considered violations:
+
+```css
+a { font-size: 1.2rem; }
+```
+
+```css
+a { animation: animation-name 500ms ease; }
+```
+
+```css
+a { -webkit-animation: animation-name 500ms ease; }
+```
+
+```css
+a { animation-duration: 500ms; }
+```
+
+```css
+a { line-height: 13px; }
+```
+
+The following patterns are *not* considered violations:
+
+```css
+a { font-size: 1em; }
+```
+
+```css
+a { height: 100px; }
+```
+
+```css
+a { animation: animation-name 5s ease; }
+```
+
+```css
+a { -webkit-animation: animation-name 5s ease; }
+```
+
+```css
+a { animation-duration: 5s; }
+```
+
+```css
+a { line-height: 1; }
+```