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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # declaration-block-semicolon-newline-before
  2. Require a newline or disallow whitespace before the semicolons of declaration blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. color: pink
  7. ; top: 0;
  8. } ↑
  9. /** ↑
  10. * The newline before this semicolon */
  11. ```
  12. This rule ignores semicolons that are preceded by Less mixins.
  13. ## Options
  14. `string`: `"always"|"always-multi-line"|"never-multi-line"`
  15. ### `"always"`
  16. There _must always_ be a newline before the semicolons.
  17. The following patterns are considered violations:
  18. <!-- prettier-ignore -->
  19. ```css
  20. a { color: pink; }
  21. ```
  22. <!-- prettier-ignore -->
  23. ```css
  24. a {
  25. color: pink; top: 0;
  26. }
  27. ```
  28. The following patterns are _not_ considered violations:
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { color: pink
  32. ; }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a {
  37. color: pink
  38. ; top: 0;
  39. }
  40. ```
  41. ### `"always-multi-line"`
  42. There _must always_ be a newline before the semicolons in multi-line rules.
  43. The following patterns are considered violations:
  44. <!-- prettier-ignore -->
  45. ```css
  46. a {
  47. color: pink; top: 0;
  48. }
  49. ```
  50. The following patterns are _not_ considered violations:
  51. <!-- prettier-ignore -->
  52. ```css
  53. a { color: pink; }
  54. ```
  55. <!-- prettier-ignore -->
  56. ```css
  57. a { color: pink; top: 0; }
  58. ```
  59. <!-- prettier-ignore -->
  60. ```css
  61. a {
  62. color: pink
  63. ; top: 0;
  64. }
  65. ```
  66. ### `"never-multi-line"`
  67. There _must never_ be whitespace before the semicolons in multi-line rules.
  68. The following patterns are considered violations:
  69. <!-- prettier-ignore -->
  70. ```css
  71. a {
  72. color: pink
  73. ; top: 0;
  74. }
  75. ```
  76. The following patterns are _not_ considered violations:
  77. <!-- prettier-ignore -->
  78. ```css
  79. a { color: pink; }
  80. ```
  81. <!-- prettier-ignore -->
  82. ```css
  83. a { color: pink; top: 0; }
  84. ```
  85. <!-- prettier-ignore -->
  86. ```css
  87. a {
  88. color: pink;
  89. top: 0;
  90. }
  91. ```