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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # function-name-case
  2. Specify lowercase or uppercase for function names.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { width: calc(5% - 10em); }
  6. /** ↑
  7. * This function */
  8. ```
  9. Camel case function names, e.g. `translateX`, are accounted for when the `lower` option is used.
  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`: `"lower"|"upper"`
  13. ### `"lower"`
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. a {
  18. width: Calc(5% - 10em);
  19. }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. a {
  24. width: cAlC(5% - 10em);
  25. }
  26. ```
  27. <!-- prettier-ignore -->
  28. ```css
  29. a {
  30. width: CALC(5% - 10em);
  31. }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a {
  36. background: -WEBKIT-RADIAL-GRADIENT(red, green, blue);
  37. }
  38. ```
  39. The following patterns are _not_ considered violations:
  40. <!-- prettier-ignore -->
  41. ```css
  42. a {
  43. width: calc(5% - 10em);
  44. }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a {
  49. background: -webkit-radial-gradient(red, green, blue);
  50. }
  51. ```
  52. ### `"upper"`
  53. The following patterns are considered violations:
  54. <!-- prettier-ignore -->
  55. ```css
  56. a {
  57. width: Calc(5% - 10em);
  58. }
  59. ```
  60. <!-- prettier-ignore -->
  61. ```css
  62. a {
  63. width: cAlC(5% - 10em);
  64. }
  65. ```
  66. <!-- prettier-ignore -->
  67. ```css
  68. a {
  69. width: calc(5% - 10em);
  70. }
  71. ```
  72. <!-- prettier-ignore -->
  73. ```css
  74. a {
  75. background: -webkit-radial-gradient(red, green, blue);
  76. }
  77. ```
  78. The following patterns are _not_ considered violations:
  79. <!-- prettier-ignore -->
  80. ```css
  81. a {
  82. width: CALC(5% - 10em);
  83. }
  84. ```
  85. <!-- prettier-ignore -->
  86. ```css
  87. a {
  88. background: -WEBKIT-RADIAL-GRADIENT(red, green, blue);
  89. }
  90. ```
  91. ## Optional secondary options
  92. ### `ignoreFunctions: ["/regex-as-string/", /regex/, "non-regex"]`
  93. Ignore case of function names.
  94. For example, with `"lower"`.
  95. Given:
  96. ```
  97. ["some-function", "/^get.*$/"]
  98. ```
  99. The following patterns are considered violations:
  100. <!-- prettier-ignore -->
  101. ```css
  102. a {
  103. color: sOmE-FuNcTiOn();
  104. }
  105. ```
  106. <!-- prettier-ignore -->
  107. ```css
  108. a {
  109. color: some-other-function();
  110. }
  111. ```
  112. <!-- prettier-ignore -->
  113. ```css
  114. a {
  115. color: GetColor();
  116. }
  117. ```
  118. <!-- prettier-ignore -->
  119. ```css
  120. a {
  121. color: GET_COLOR();
  122. }
  123. ```
  124. The following patterns are _not_ considered violations:
  125. <!-- prettier-ignore -->
  126. ```css
  127. a {
  128. display: some-function();
  129. }
  130. ```
  131. <!-- prettier-ignore -->
  132. ```css
  133. a {
  134. display: getColor();
  135. }
  136. ```
  137. <!-- prettier-ignore -->
  138. ```css
  139. a {
  140. display: get_color();
  141. }
  142. ```