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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. # block-closing-brace-empty-line-before
  2. Require or disallow an empty line before the closing brace of blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. color: pink;
  7. /* ← */
  8. } /* ↑ */
  9. /** ↑
  10. * This line */
  11. ```
  12. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  13. ## Options
  14. `string`: `"always-multi-line"|"never"`
  15. ### `always-multi-line`
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a {
  20. color: pink;
  21. }
  22. ```
  23. The following patterns are _not_ considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a {
  27. color: pink;
  28. }
  29. ```
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { color: pink; }
  33. ```
  34. ### `never`
  35. The following patterns are considered violations:
  36. <!-- prettier-ignore -->
  37. ```css
  38. a {
  39. color: pink;
  40. }
  41. ```
  42. The following patterns are _not_ considered violations:
  43. <!-- prettier-ignore -->
  44. ```css
  45. a {
  46. color: pink;
  47. }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { color: pink; }
  52. ```
  53. ## Optional secondary options
  54. ### `except: ["after-closing-brace"]`
  55. When a rule is nested, `after-closing-brace` brace will reverse the primary option.
  56. For example, with `"never"` and `except: ["after-closing-brace"]`:
  57. The following patterns are considered violations:
  58. <!-- prettier-ignore -->
  59. ```css
  60. @media print {
  61. a {
  62. color: aquamarine;
  63. }
  64. }
  65. ```
  66. <!-- prettier-ignore -->
  67. ```css
  68. @supports (animation-name: test) {
  69. a {
  70. color: aquamarine;
  71. }
  72. }
  73. ```
  74. <!-- prettier-ignore -->
  75. ```css
  76. @keyframes test {
  77. 100% {
  78. color: aquamarine;
  79. }
  80. }
  81. ```
  82. The following patterns are _not_ considered violations:
  83. <!-- prettier-ignore -->
  84. ```css
  85. @media print {
  86. a {
  87. color: aquamarine;
  88. }
  89. }
  90. ```
  91. <!-- prettier-ignore -->
  92. ```css
  93. @font-face {
  94. font-family: "MyFont";
  95. src: url("myfont.woff2") format("woff2");
  96. }
  97. ```
  98. <!-- prettier-ignore -->
  99. ```css
  100. @supports (animation-name: test) {
  101. a {
  102. color: aquamarine;
  103. }
  104. }
  105. ```
  106. <!-- prettier-ignore -->
  107. ```css
  108. @keyframes test {
  109. 100% {
  110. color: aquamarine;
  111. }
  112. }
  113. ```
  114. For example, with `"always-multi-line"` and `except: ["after-closing-brace"]`:
  115. The following patterns are considered violations:
  116. <!-- prettier-ignore -->
  117. ```css
  118. @media print {
  119. a {
  120. color: aquamarine;
  121. }
  122. }
  123. ```
  124. <!-- prettier-ignore -->
  125. ```css
  126. @supports (animation-name: test) {
  127. a {
  128. color: aquamarine;
  129. }
  130. }
  131. ```
  132. <!-- prettier-ignore -->
  133. ```css
  134. @keyframes test {
  135. 100% {
  136. color: aquamarine;
  137. }
  138. }
  139. ```
  140. The following patterns are _not_ considered violations:
  141. <!-- prettier-ignore -->
  142. ```css
  143. @media print {
  144. a {
  145. color: aquamarine;
  146. }
  147. }
  148. ```
  149. <!-- prettier-ignore -->
  150. ```css
  151. @font-face {
  152. font-family: "MyFont";
  153. src: url("myfont.woff2") format("woff2");
  154. }
  155. ```
  156. <!-- prettier-ignore -->
  157. ```css
  158. @supports (animation-name: test) {
  159. a {
  160. color: aquamarine;
  161. }
  162. }
  163. ```
  164. <!-- prettier-ignore -->
  165. ```css
  166. @keyframes test {
  167. 100% {
  168. color: aquamarine;
  169. }
  170. }
  171. ```