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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # selector-list-comma-newline-after
  2. Require a newline or disallow whitespace after the commas of selector lists.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a,
  6. b↑{ color: pink; }
  7. /** ↑
  8. * The newline after this comma */
  9. ```
  10. End-of-line comments are allowed one space after the comma.
  11. <!-- prettier-ignore -->
  12. ```css
  13. a, /* comment */
  14. b { color: pink; }
  15. ```
  16. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  17. ## Options
  18. `string`: `"always"|"always-multi-line"|"never-multi-line"`
  19. ### `"always"`
  20. There _must always_ be a newline after the commas.
  21. The following patterns are considered violations:
  22. <!-- prettier-ignore -->
  23. ```css
  24. a, b { color: pink; }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. a
  29. , b { color: pink; }
  30. ```
  31. The following patterns are _not_ considered violations:
  32. <!-- prettier-ignore -->
  33. ```css
  34. a,
  35. b { color: pink; }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a
  40. ,
  41. b { color: pink; }
  42. ```
  43. ### `"always-multi-line"`
  44. There _must always_ be a newline after the commas in multi-line selector lists.
  45. The following patterns are considered violations:
  46. <!-- prettier-ignore -->
  47. ```css
  48. a
  49. , b { color: pink; }
  50. ```
  51. The following patterns are _not_ considered violations:
  52. <!-- prettier-ignore -->
  53. ```css
  54. a, b { color: pink; }
  55. ```
  56. <!-- prettier-ignore -->
  57. ```css
  58. a,
  59. b { color: pink; }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a
  64. ,
  65. b { color: pink; }
  66. ```
  67. ### `"never-multi-line"`
  68. There _must never_ be whitespace after the commas in multi-line selector lists.
  69. The following patterns are considered violations:
  70. <!-- prettier-ignore -->
  71. ```css
  72. a
  73. , b { color: pink; }
  74. ```
  75. <!-- prettier-ignore -->
  76. ```css
  77. a,
  78. b { color: pink; }
  79. ```
  80. The following patterns are _not_ considered violations:
  81. <!-- prettier-ignore -->
  82. ```css
  83. a,b { color: pink; }
  84. ```
  85. <!-- prettier-ignore -->
  86. ```css
  87. a
  88. ,b { color: pink; }
  89. ```