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

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