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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # function-comma-newline-before
  2. Require a newline or disallow whitespace before the commas of functions.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { transform: translate(1
  6. , 1) }
  7. /** ↑
  8. * 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 { transform: translate(1,1) }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { transform: translate(1 ,1) }
  23. ```
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { transform: translate(1,
  27. 1) }
  28. ```
  29. The following patterns are _not_ considered violations:
  30. <!-- prettier-ignore -->
  31. ```css
  32. a {
  33. transform: translate(1
  34. ,1)
  35. }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a {
  40. transform: translate(1
  41. , 1)
  42. }
  43. ```
  44. ### `"always-multi-line"`
  45. There _must always_ be a newline before the commas in multi-line functions.
  46. The following patterns are considered violations:
  47. <!-- prettier-ignore -->
  48. ```css
  49. a { transform: translate(1,
  50. 1) }
  51. ```
  52. The following patterns are _not_ considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a { transform: translate(1,1) }
  56. ```
  57. <!-- prettier-ignore -->
  58. ```css
  59. a { transform: translate(1 ,1) }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a {
  64. transform: translate(1
  65. ,1)
  66. }
  67. ```
  68. <!-- prettier-ignore -->
  69. ```css
  70. a {
  71. transform: translate(1
  72. , 1)
  73. }
  74. ```
  75. ### `"never-multi-line"`
  76. There _must never_ be whitespace before the commas in multi-line functions.
  77. The following patterns are considered violations:
  78. <!-- prettier-ignore -->
  79. ```css
  80. a { transform: translate(1 ,
  81. 1) }
  82. ```
  83. The following patterns are _not_ considered violations:
  84. <!-- prettier-ignore -->
  85. ```css
  86. a { transform: translate(1 ,1) }
  87. ```
  88. <!-- prettier-ignore -->
  89. ```css
  90. a { transform: translate(1 , 1) }
  91. ```
  92. <!-- prettier-ignore -->
  93. ```css
  94. a {
  95. transform: translate(1,
  96. 1)
  97. }
  98. ```