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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # block-opening-brace-newline-before
  2. Require a newline or disallow whitespace before the opening brace of blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a
  6. { color: pink; }
  7. /** ↑
  8. * The newline before this brace */
  9. ```
  10. Refer to [combining rules](../../../docs/user-guide/rules/combine.md) for more information on using this rule with [`block-opening-brace-newline-after`](../block-opening-brace-newline-after/README.md) to disallow single-line rules.
  11. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  12. ## Options
  13. `string`: `"always"|"always-single-line"|"never-single-line"|"always-multi-line"|"never-multi-line"`
  14. ### `"always"`
  15. There _must always_ be a newline before the opening brace.
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a{ color: pink; }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. a{ color: pink;
  24. }
  25. ```
  26. The following patterns are _not_ considered violations:
  27. <!-- prettier-ignore -->
  28. ```css
  29. a
  30. { color: pink; }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a
  35. {
  36. color: pink; }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a /* foo */
  41. {
  42. color: pink;
  43. }
  44. ```
  45. ### `"always-single-line"`
  46. There _must always_ be a newline before the opening brace in single-line blocks.
  47. The following patterns are considered violations:
  48. <!-- prettier-ignore -->
  49. ```css
  50. a{ color: pink; }
  51. ```
  52. The following patterns are _not_ considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a
  56. { color: pink; }
  57. ```
  58. <!-- prettier-ignore -->
  59. ```css
  60. a{
  61. color: pink; }
  62. ```
  63. ### `"never-single-line"`
  64. There _must never_ be whitespace before the opening brace in single-line blocks.
  65. The following patterns are considered violations:
  66. <!-- prettier-ignore -->
  67. ```css
  68. a { color: pink; }
  69. ```
  70. The following patterns are _not_ considered violations:
  71. <!-- prettier-ignore -->
  72. ```css
  73. a{ color: pink; }
  74. ```
  75. <!-- prettier-ignore -->
  76. ```css
  77. a {
  78. color: pink; }
  79. ```
  80. ### `"always-multi-line"`
  81. There _must always_ be a newline before the opening brace in multi-line blocks.
  82. The following patterns are considered violations:
  83. <!-- prettier-ignore -->
  84. ```css
  85. a{
  86. color: pink; }
  87. ```
  88. <!-- prettier-ignore -->
  89. ```css
  90. a {
  91. color: pink; }
  92. ```
  93. The following patterns are _not_ considered violations:
  94. <!-- prettier-ignore -->
  95. ```css
  96. a{ color: pink; }
  97. ```
  98. <!-- prettier-ignore -->
  99. ```css
  100. a { color: pink; }
  101. ```
  102. <!-- prettier-ignore -->
  103. ```css
  104. a
  105. { color: pink; }
  106. ```
  107. <!-- prettier-ignore -->
  108. ```css
  109. a
  110. {
  111. color: pink; }
  112. ```
  113. ### `"never-multi-line"`
  114. There _must never_ be whitespace before the opening brace in multi-line blocks.
  115. The following patterns are considered violations:
  116. <!-- prettier-ignore -->
  117. ```css
  118. a {
  119. color: pink; }
  120. ```
  121. The following patterns are _not_ considered violations:
  122. <!-- prettier-ignore -->
  123. ```css
  124. a { color: pink; }
  125. ```
  126. <!-- prettier-ignore -->
  127. ```css
  128. a{
  129. color: pink;}
  130. ```