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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # number-max-precision
  2. Limit the number of decimal places allowed in numbers.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { top: 3.245634px; }
  6. /** ↑
  7. * This decimal place */
  8. ```
  9. ## Options
  10. `int`: Maximum number of decimal places allowed.
  11. For example, with `2`:
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. a { top: 3.245px; }
  16. ```
  17. <!-- prettier-ignore -->
  18. ```css
  19. a { top: 3.245634px; }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. @media (min-width: 3.234em) {}
  24. ```
  25. The following patterns are _not_ considered violations:
  26. <!-- prettier-ignore -->
  27. ```css
  28. a { top: 3.24px; }
  29. ```
  30. <!-- prettier-ignore -->
  31. ```css
  32. @media (min-width: 3.23em) {}
  33. ```
  34. ## Optional secondary options
  35. ### `ignoreUnits: ["/regex/", /regex/, "string"]`
  36. Ignore the precision of numbers for values with the specified units.
  37. For example, with `2`.
  38. Given:
  39. ```
  40. ["/^my-/", "%"]
  41. ```
  42. The following patterns are considered violations:
  43. <!-- prettier-ignore -->
  44. ```css
  45. a { top: 3.245px; }
  46. ```
  47. <!-- prettier-ignore -->
  48. ```css
  49. a { top: 3.245634px; }
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. @media (min-width: 3.234em) {}
  54. ```
  55. The following patterns are _not_ considered violations:
  56. <!-- prettier-ignore -->
  57. ```css
  58. a { top: 3.245%; }
  59. ```
  60. <!-- prettier-ignore -->
  61. ```css
  62. @media (min-width: 3.23em) {}
  63. ```
  64. <!-- prettier-ignore -->
  65. ```css
  66. a {
  67. width: 10.5432%;
  68. }
  69. ```
  70. <!-- prettier-ignore -->
  71. ```css
  72. a { top: 3.245my-unit; }
  73. ```
  74. <!-- prettier-ignore -->
  75. ```css
  76. a {
  77. width: 10.989my-other-unit;
  78. }
  79. ```