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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # declaration-block-semicolon-space-before
  2. Require a single space or disallow whitespace before the semicolons of declaration blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: pink; }
  6. /** ↑
  7. * The space before this semicolon */
  8. ```
  9. This rule ignores semicolons that are preceded by Less mixins.
  10. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  11. ## Options
  12. `string`: `"always"|"never"|"always-single-line"|"never-single-line"`
  13. ### `"always"`
  14. There _must always_ be a single space before the semicolons.
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { color: pink; }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { color: pink; top: 0; }
  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 ; top: 0 ; }
  32. ```
  33. ### `"never"`
  34. There _must never_ be whitespace before the semicolons.
  35. The following patterns are considered violations:
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { color: pink ; }
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { color: pink ; top: 0 ; }
  43. ```
  44. The following patterns are _not_ considered violations:
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { color: pink; }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { color: pink; top: 0; }
  52. ```
  53. ### `"always-single-line"`
  54. There _must always_ be a single space before the semicolons in single-line declaration blocks.
  55. The following patterns are considered violations:
  56. <!-- prettier-ignore -->
  57. ```css
  58. a { color: pink; }
  59. ```
  60. The following patterns are _not_ considered violations:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { color: pink ; }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a { color: pink; top: 0; }
  68. ```
  69. <!-- prettier-ignore -->
  70. ```css
  71. a { color: pink ; top: 0 ; }
  72. ```
  73. ### `"never-single-line"`
  74. There _must never_ be whitespace before the semicolons in single-line declaration 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; top: 0; }
  88. ```
  89. <!-- prettier-ignore -->
  90. ```css
  91. a { color: pink ; top: 0 ; }
  92. ```