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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # function-parentheses-newline-inside
  2. Require a newline or disallow whitespace on the inside of the parentheses of functions.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. transform: translate(
  7. 1, /* ↑ */
  8. 1 /* ↑ */
  9. ); /* ↑ */
  10. } /* ↑ */
  11. /** ↑ ↑
  12. * The newline inside these two parentheses */
  13. ```
  14. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  15. ## Options
  16. `string`: `"always"|"always-multi-line"|"never-multi-line"`
  17. ### `"always"`
  18. There _must always_ be a newline inside the parentheses.
  19. The following patterns are considered violations:
  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. ```
  30. The following patterns are _not_ considered violations:
  31. <!-- prettier-ignore -->
  32. ```css
  33. a {
  34. transform: translate(
  35. 1, 1
  36. );
  37. }
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. a {
  42. transform: translate(
  43. 1,
  44. 1
  45. );
  46. }
  47. ```
  48. ### `"always-multi-line"`
  49. There _must always_ be a newline inside the parentheses of multi-line functions.
  50. The following patterns are considered violations:
  51. <!-- prettier-ignore -->
  52. ```css
  53. a { transform: translate(1,
  54. 1) }
  55. ```
  56. The following patterns are _not_ considered violations:
  57. <!-- prettier-ignore -->
  58. ```css
  59. a { transform: translate(1, 1) }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { transform: translate( 1, 1 ) }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a {
  68. transform: translate(
  69. 1, 1
  70. );
  71. }
  72. ```
  73. <!-- prettier-ignore -->
  74. ```css
  75. a {
  76. transform: translate(
  77. 1,
  78. 1
  79. );
  80. }
  81. ```
  82. ### `"never-multi-line"`
  83. The following patterns are considered violations:
  84. <!-- prettier-ignore -->
  85. ```css
  86. a {
  87. transform: translate(
  88. 1, 1
  89. );
  90. }
  91. ```
  92. <!-- prettier-ignore -->
  93. ```css
  94. a {
  95. transform: translate(
  96. 1,
  97. 1
  98. );
  99. }
  100. ```
  101. The following patterns are _not_ considered violations:
  102. <!-- prettier-ignore -->
  103. ```css
  104. a { transform: translate(1, 1) }
  105. ```
  106. <!-- prettier-ignore -->
  107. ```css
  108. a { transform: translate( 1, 1 ) }
  109. ```
  110. <!-- prettier-ignore -->
  111. ```css
  112. a { transform: translate(1,
  113. 1) }
  114. ```