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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. # custom-property-empty-line-before
  2. Require or disallow an empty line before custom properties.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. top: 10px;
  7. /* ← */
  8. --foo: pink; /* ↑ */
  9. } /* ↑ */
  10. /** ↑
  11. * This line */
  12. ```
  13. 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.
  14. ## Options
  15. `string`: `"always"|"never"`
  16. ### `"always"`
  17. The following patterns are considered violations:
  18. <!-- prettier-ignore -->
  19. ```css
  20. a {
  21. top: 10px;
  22. --foo: pink;
  23. --bar: red;
  24. }
  25. ```
  26. The following patterns are _not_ considered violations:
  27. <!-- prettier-ignore -->
  28. ```css
  29. a {
  30. top: 10px;
  31. --foo: pink;
  32. --bar: red;
  33. }
  34. ```
  35. ### `"never"`
  36. The following patterns are considered violations:
  37. <!-- prettier-ignore -->
  38. ```css
  39. a {
  40. top: 10px;
  41. --foo: pink;
  42. --bar: red;
  43. }
  44. ```
  45. <!-- prettier-ignore -->
  46. ```css
  47. a {
  48. --foo: pink;
  49. --bar: red;
  50. }
  51. ```
  52. The following patterns are _not_ considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a {
  56. top: 10px;
  57. --foo: pink;
  58. --bar: red;
  59. }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a {
  64. --foo: pink;
  65. --bar: red;
  66. }
  67. ```
  68. ## Optional secondary options
  69. ### `except: ["after-comment", "after-custom-property", "first-nested"]`
  70. #### `"after-comment"`
  71. Reverse the primary option for custom properties that follow a comment.
  72. Shared-line comments do not trigger this option.
  73. For example, with `"always"`:
  74. The following patterns are considered violations:
  75. <!-- prettier-ignore -->
  76. ```css
  77. a {
  78. --foo: pink;
  79. /* comment */
  80. --bar: red;
  81. }
  82. ```
  83. <!-- prettier-ignore -->
  84. ```css
  85. a {
  86. --foo: pink; /* comment */
  87. --bar: red;
  88. }
  89. ```
  90. The following patterns are _not_ considered violations:
  91. <!-- prettier-ignore -->
  92. ```css
  93. a {
  94. --foo: pink;
  95. /* comment */
  96. --bar: red;
  97. }
  98. ```
  99. <!-- prettier-ignore -->
  100. ```css
  101. a {
  102. --foo: pink; /* comment */
  103. --bar: red;
  104. }
  105. ```
  106. #### `"after-custom-property"`
  107. Reverse the primary option for custom properties that follow another custom property.
  108. Shared-line comments do not affect this option.
  109. For example, with `"always"`:
  110. The following patterns are considered violations:
  111. <!-- prettier-ignore -->
  112. ```css
  113. a {
  114. --foo: pink;
  115. --bar: red;
  116. }
  117. ```
  118. <!-- prettier-ignore -->
  119. ```css
  120. a {
  121. --foo: pink; /* comment */
  122. --bar: red;
  123. }
  124. ```
  125. The following patterns are _not_ considered violations:
  126. <!-- prettier-ignore -->
  127. ```css
  128. a {
  129. --foo: pink;
  130. --bar: red;
  131. }
  132. ```
  133. <!-- prettier-ignore -->
  134. ```css
  135. a {
  136. --foo: pink; /* comment */
  137. --bar: red;
  138. }
  139. ```
  140. #### `"first-nested"`
  141. Reverse the primary option for custom properties that are nested and the first child of their parent node.
  142. For example, with `"always"`:
  143. The following patterns are considered violations:
  144. <!-- prettier-ignore -->
  145. ```css
  146. a {
  147. --foo: pink;
  148. --bar: red;
  149. }
  150. ```
  151. The following patterns are _not_ considered violations:
  152. <!-- prettier-ignore -->
  153. ```css
  154. a {
  155. --foo: pink;
  156. --bar: red;
  157. }
  158. ```
  159. ### `ignore: ["after-comment", "first-nested", "inside-single-line-block"]`
  160. #### `"after-comment"`
  161. Ignore custom properties that follow a comment.
  162. For example, with `"always"`:
  163. The following patterns are _not_ considered violations:
  164. <!-- prettier-ignore -->
  165. ```css
  166. a {
  167. /* comment */
  168. --foo: pink;
  169. }
  170. ```
  171. #### `"first-nested"`
  172. Ignore custom properties that are nested and the first child of their parent node.
  173. For example, with `"always"`:
  174. The following patterns are _not_ considered violations:
  175. <!-- prettier-ignore -->
  176. ```css
  177. a {
  178. --foo: pink;
  179. --bar: red;
  180. }
  181. ```
  182. #### `"inside-single-line-block"`
  183. Ignore custom properties that are inside single-line blocks.
  184. For example, with `"always"`:
  185. The following patterns are _not_ considered violations:
  186. <!-- prettier-ignore -->
  187. ```css
  188. a { --foo: pink; --bar: red; }
  189. ```