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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. # declaration-empty-line-before
  2. Require or disallow an empty line before declarations.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. --foo: pink;
  7. /* ← */
  8. top: 15px; /* ↑ */
  9. } /* ↑ */
  10. /** ↑
  11. * This line */
  12. ```
  13. This rule only applies to standard property declarations. Use the [`custom-property-empty-line-before`](../custom-property-empty-line-before/README.md) rule for custom property declarations.
  14. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. We recommend to enable [`indentation`](../indentation/README.md) rule for better autofixing results with this rule.
  15. ## Options
  16. `string`: `"always"|"never"`
  17. ### `"always"`
  18. The following patterns are considered violations:
  19. <!-- prettier-ignore -->
  20. ```css
  21. a {
  22. --foo: pink;
  23. top: 5px;
  24. }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. a {
  29. bottom: 15px;
  30. top: 5px;
  31. }
  32. ```
  33. The following patterns are _not_ considered violations:
  34. <!-- prettier-ignore -->
  35. ```css
  36. a {
  37. --foo: pink;
  38. top: 5px;
  39. }
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a {
  44. bottom: 15px;
  45. top: 5px;
  46. }
  47. ```
  48. ### `"never"`
  49. The following patterns are considered violations:
  50. <!-- prettier-ignore -->
  51. ```css
  52. a {
  53. --foo: pink;
  54. bottom: 15px;
  55. }
  56. ```
  57. <!-- prettier-ignore -->
  58. ```css
  59. a {
  60. bottom: 15px;
  61. top: 5px;
  62. }
  63. ```
  64. The following patterns are _not_ considered violations:
  65. <!-- prettier-ignore -->
  66. ```css
  67. a {
  68. --foo: pink;
  69. bottom: 15px;
  70. }
  71. ```
  72. <!-- prettier-ignore -->
  73. ```css
  74. a {
  75. bottom: 15px;
  76. top: 5px;
  77. }
  78. ```
  79. ## Optional secondary options
  80. ### `except: ["after-comment", "after-declaration", "first-nested"]`
  81. #### `"after-comment"`
  82. Reverse the primary option for declarations that follow a comment.
  83. Shared-line comments do not trigger this option.
  84. For example, with `"always"`:
  85. The following patterns are considered violations:
  86. <!-- prettier-ignore -->
  87. ```css
  88. a {
  89. /* comment */
  90. top: 5px;
  91. }
  92. ```
  93. <!-- prettier-ignore -->
  94. ```css
  95. a {
  96. bottom: 5px; /* comment */
  97. top: 5px;
  98. }
  99. ```
  100. The following patterns are _not_ considered violations:
  101. <!-- prettier-ignore -->
  102. ```css
  103. a {
  104. /* comment */
  105. top: 5px;
  106. }
  107. ```
  108. <!-- prettier-ignore -->
  109. ```css
  110. a {
  111. bottom: 5px; /* comment */
  112. top: 5px;
  113. }
  114. ```
  115. #### `"after-declaration"`
  116. Reverse the primary option for declarations that follow another declaration.
  117. Shared-line comments do not affect this option.
  118. For example, with `"always"`:
  119. The following patterns are considered violations:
  120. <!-- prettier-ignore -->
  121. ```css
  122. a {
  123. bottom: 15px;
  124. top: 5px;
  125. }
  126. ```
  127. <!-- prettier-ignore -->
  128. ```css
  129. a {
  130. bottom: 15px; /* comment */
  131. top: 5px;
  132. }
  133. ```
  134. The following patterns are _not_ considered violations:
  135. <!-- prettier-ignore -->
  136. ```css
  137. a {
  138. bottom: 15px;
  139. top: 5px;
  140. }
  141. ```
  142. <!-- prettier-ignore -->
  143. ```css
  144. a {
  145. bottom: 15px; /* comment */
  146. top: 5px;
  147. }
  148. ```
  149. #### `"first-nested"`
  150. Reverse the primary option for declarations that are nested and the first child of their parent node.
  151. For example, with `"always"`:
  152. The following patterns are considered violations:
  153. <!-- prettier-ignore -->
  154. ```css
  155. a {
  156. bottom: 15px;
  157. top: 5px;
  158. }
  159. ```
  160. The following patterns are _not_ considered violations:
  161. <!-- prettier-ignore -->
  162. ```css
  163. a {
  164. bottom: 15px;
  165. top: 5px;
  166. }
  167. ```
  168. ### `ignore: ["after-comment", "after-declaration", "first-nested", "inside-single-line-block"]`
  169. #### `"after-comment"`
  170. Ignore declarations that follow a comment.
  171. For example, with `"always"`:
  172. The following patterns are _not_ considered violations:
  173. <!-- prettier-ignore -->
  174. ```css
  175. a {
  176. /* comment */
  177. bottom: 15px;
  178. }
  179. ```
  180. #### `"after-declaration"`
  181. Ignore declarations that follow another declaration.
  182. For example, with `"always"`:
  183. The following patterns are _not_ considered violations:
  184. <!-- prettier-ignore -->
  185. ```css
  186. a {
  187. bottom: 15px;
  188. top: 15px;
  189. }
  190. ```
  191. <!-- prettier-ignore -->
  192. ```css
  193. a {
  194. bottom: 15px;
  195. top: 15px;
  196. }
  197. ```
  198. <!-- prettier-ignore -->
  199. ```css
  200. a {
  201. color: orange;
  202. text-decoration: none;
  203. bottom: 15px;
  204. top: 15px;
  205. }
  206. ```
  207. #### `"first-nested"`
  208. Ignore declarations that are nested and the first child of their parent node.
  209. For example, with `"always"`:
  210. The following patterns are _not_ considered violations:
  211. <!-- prettier-ignore -->
  212. ```css
  213. a {
  214. bottom: 15px;
  215. top: 5px;
  216. }
  217. ```
  218. #### `"inside-single-line-block"`
  219. Ignore declarations that are inside single-line blocks.
  220. For example, with `"always"`:
  221. The following patterns are _not_ considered violations:
  222. <!-- prettier-ignore -->
  223. ```css
  224. a { bottom: 15px; top: 5px; }
  225. ```