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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # selector-list-comma-space-before
  2. Require a single space or disallow whitespace before the commas of selector lists.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a ,b { color: pink; }
  6. /** ↑
  7. * The space before this comma */
  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"`
  12. ### `"always"`
  13. There _must always_ be a single space before the commas.
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. a,b { color: pink; }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a, b { color: pink; }
  22. ```
  23. The following patterns are _not_ considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a ,b { color: pink; }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a , b { color: pink; }
  31. ```
  32. ### `"never"`
  33. There _must never_ be whitespace before the commas.
  34. The following patterns are considered violations:
  35. <!-- prettier-ignore -->
  36. ```css
  37. a ,b { color: pink; }
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. a , b { color: pink; }
  42. ```
  43. The following patterns are _not_ considered violations:
  44. <!-- prettier-ignore -->
  45. ```css
  46. a,b { color: pink; }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a, b { color: pink; }
  51. ```
  52. ### `"always-single-line"`
  53. There _must always_ be a single space before the commas in single-line selector lists.
  54. The following patterns are considered violations:
  55. <!-- prettier-ignore -->
  56. ```css
  57. a,b { color: pink; }
  58. ```
  59. The following patterns are _not_ considered violations:
  60. <!-- prettier-ignore -->
  61. ```css
  62. a,
  63. b { color: pink; }
  64. ```
  65. ### `"never-single-line"`
  66. There _must never_ be a single space before the commas in single-line selector lists.
  67. The following patterns are considered violations:
  68. <!-- prettier-ignore -->
  69. ```css
  70. a ,b { color: pink; }
  71. ```
  72. The following patterns are _not_ considered violations:
  73. <!-- prettier-ignore -->
  74. ```css
  75. a ,
  76. b { color: pink; }
  77. ```