Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

README.md 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # number-leading-zero
  2. Require or disallow a leading zero for fractional numbers less than 1.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { line-height: 0.5; }
  6. /** ↑
  7. * This leading zero */
  8. ```
  9. This rule ignores mixin parameters in Less.
  10. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  11. ## Options
  12. `string`: `"always"|"never"`
  13. ### `"always"`
  14. There _must always_ be a leading zero.
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { line-height: .5; }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { transform: translate(2px, .4px); }
  23. ```
  24. The following patterns are _not_ considered violations:
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { line-height: 0.5; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { transform: translate(2px, 0.4px); }
  32. ```
  33. ### `"never"`
  34. There _must never_ be a leading zero.
  35. The following patterns are considered violations:
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { line-height: 0.5; }
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { transform: translate(2px, 0.4px); }
  43. ```
  44. The following patterns are _not_ considered violations:
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { line-height: .5; }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { transform: translate(2px, .4px); }
  52. ```