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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # property-no-unknown
  2. Disallow unknown properties.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { heigth: 100%; }
  6. /** ↑
  7. * This property */
  8. ```
  9. This rule considers properties defined in the [CSS Specifications and browser specific properties](https://github.com/betit/known-css-properties#source) to be known.
  10. This rule ignores:
  11. - variables (`$sass`, `@less`, `--custom-property`)
  12. - vendor-prefixed properties (e.g., `-moz-align-self`, `-webkit-align-self`)
  13. Use option `checkPrefixed` described below to turn on checking of vendor-prefixed properties.
  14. ## Options
  15. ### `true`
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a {
  20. colr: blue;
  21. }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a {
  26. my-property: 1;
  27. }
  28. ```
  29. The following patterns are _not_ considered violations:
  30. <!-- prettier-ignore -->
  31. ```css
  32. a {
  33. color: green;
  34. }
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a {
  39. fill: black;
  40. }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. a {
  45. -moz-align-self: center;
  46. }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a {
  51. -webkit-align-self: center;
  52. }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a {
  57. align-self: center;
  58. }
  59. ```
  60. ## Optional secondary options
  61. ### `ignoreProperties: ["/regex/", /regex/, "string"]`
  62. Given:
  63. ```
  64. ["/^my-/", "custom"]
  65. ```
  66. The following patterns are _not_ considered violations:
  67. <!-- prettier-ignore -->
  68. ```css
  69. a {
  70. my-property: 10px;
  71. }
  72. ```
  73. <!-- prettier-ignore -->
  74. ```css
  75. a {
  76. my-other-property: 10px;
  77. }
  78. ```
  79. <!-- prettier-ignore -->
  80. ```css
  81. a {
  82. custom: 10px;
  83. }
  84. ```
  85. ### `ignoreSelectors: ["/regex/", /regex/, "string"]`
  86. Skips checking properties of the given selectors against this rule.
  87. Given:
  88. ```
  89. [":root"]
  90. ```
  91. The following patterns are _not_ considered violations:
  92. <!-- prettier-ignore -->
  93. ```css
  94. :root {
  95. my-property: blue;
  96. }
  97. ```
  98. ### `ignoreAtRules: ["/regex/", /regex/, "string"]`
  99. Ignores properties nested within specified at-rules.
  100. Given:
  101. ```
  102. ["supports"]
  103. ```
  104. The following patterns are _not_ considered violations:
  105. <!-- prettier-ignore -->
  106. ```css
  107. @supports (display: grid) {
  108. a {
  109. my-property: 1;
  110. }
  111. }
  112. ```
  113. ### `checkPrefixed: true | false` (default: `false`)
  114. If `true`, this rule will check vendor-prefixed properties.
  115. For example with `true`:
  116. The following patterns are _not_ considered violations:
  117. <!-- prettier-ignore -->
  118. ```css
  119. a {
  120. -webkit-overflow-scrolling: auto;
  121. }
  122. ```
  123. <!-- prettier-ignore -->
  124. ```css
  125. a {
  126. -moz-box-flex: 0;
  127. }
  128. ```
  129. The following patterns are considered violations:
  130. <!-- prettier-ignore -->
  131. ```css
  132. a {
  133. -moz-align-self: center;
  134. }
  135. ```
  136. <!-- prettier-ignore -->
  137. ```css
  138. a {
  139. -moz-overflow-scrolling: center;
  140. }
  141. ```