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

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