.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / length-zero-no-unit / README.md
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/length-zero-no-unit/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/rules/length-zero-no-unit/README.md
new file mode 100644 (file)
index 0000000..dd96359
--- /dev/null
@@ -0,0 +1,59 @@
+# length-zero-no-unit
+
+Disallow units for zero lengths.
+
+```css
+a { top: 0px; }
+/**      ↑↑
+ * This zero and this type of length unit */
+```
+
+*Lengths* refer to distance measurements. A length is a *dimension*, which is a *number* immediately followed by a *unit identifier*. However, for zero lengths the unit identifier is optional. The length units are: `em`, `ex`, `ch`, `vw`, `vh`, `cm`, `mm`, `in`, `pt`, `pc`, `px`, `rem`, `vmin`, and `vmax`.
+
+The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
+
+## Options
+
+### `true`
+
+The following patterns are considered violations:
+
+```css
+a { top: 0px }
+```
+
+```css
+a { top: 0.000em }
+```
+
+The following patterns are *not* considered violations:
+
+```css
+a { top: 0 } /* no unit */
+```
+
+```css
+a { transition-delay: 0s; } /* dimension */
+```
+
+```css
+a { top: 2in; }
+```
+
+```css
+a { top: 1.001vh }
+```
+
+## Optional secondary options
+
+### `ignore: ["custom-properties"]`
+
+#### `"custom-properties"`
+
+Ignore units for zero length in custom properties.
+
+The following pattern is *not* considered a violation:
+
+```css
+a { --x: 0px; }
+```