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

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