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

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