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

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