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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # declaration-block-semicolon-newline-after
  2. Require a newline or disallow whitespace after the semicolons of declaration blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. color: pink;
  7. top: 0; ↑
  8. } ↑
  9. /** ↑
  10. * The newline after this semicolon */
  11. ```
  12. This rule ignores:
  13. - semicolons that are preceded by Less mixins
  14. - the last semicolon of declaration blocks
  15. Use the `block-closing-brace-*-before` rules to control the whitespace between the last semicolon and the closing brace instead.
  16. This rule allows an end-of-line comment followed by a newline. For example,
  17. <!-- prettier-ignore -->
  18. ```css
  19. a {
  20. color: pink; /* end-of-line comment */
  21. top: 0;
  22. }
  23. ```
  24. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  25. ## Options
  26. `string`: `"always"|"always-multi-line"|"never-multi-line"`
  27. ### `"always"`
  28. There _must always_ be a newline after the semicolon.
  29. The following patterns are considered violations:
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { color: pink; top: 0; }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a {
  37. color: pink; /* end-of-line comment
  38. containing a newline */
  39. top: 0;
  40. }
  41. ```
  42. The following patterns are _not_ considered violations:
  43. <!-- prettier-ignore -->
  44. ```css
  45. a {
  46. color: pink;
  47. top: 0;
  48. }
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. a {
  53. color: pink; /* end-of-line comment */
  54. top: 0;
  55. }
  56. ```
  57. ### `"always-multi-line"`
  58. There _must always_ be a newline after the semicolon in multi-line rules.
  59. The following patterns are considered violations:
  60. <!-- prettier-ignore -->
  61. ```css
  62. a {
  63. color: pink; top: 0;
  64. }
  65. ```
  66. The following patterns are _not_ considered violations:
  67. <!-- prettier-ignore -->
  68. ```css
  69. a { color: pink; }
  70. ```
  71. <!-- prettier-ignore -->
  72. ```css
  73. a { color: pink; top: 0; }
  74. ```
  75. <!-- prettier-ignore -->
  76. ```css
  77. a {
  78. color: pink;
  79. top: 0;
  80. }
  81. ```
  82. ### `"never-multi-line"`
  83. There _must never_ be whitespace after the semicolon in multi-line rules.
  84. The following patterns are considered violations:
  85. <!-- prettier-ignore -->
  86. ```css
  87. a {
  88. color: pink;
  89. top: 0;
  90. }
  91. ```
  92. The following patterns are _not_ considered violations:
  93. <!-- prettier-ignore -->
  94. ```css
  95. a { color: pink; }
  96. ```
  97. <!-- prettier-ignore -->
  98. ```css
  99. a { color: pink; top: 0; }
  100. ```
  101. <!-- prettier-ignore -->
  102. ```css
  103. a {
  104. color: pink
  105. ; top: 0;
  106. }
  107. ```