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 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # selector-type-no-unknown
  2. Disallow unknown type selectors.
  3. <!-- prettier-ignore -->
  4. ```css
  5. unknown {}
  6. /** ↑
  7. * This type selector */
  8. ```
  9. This rule considers tags defined in the HTML, SVG, and MathML specifications to be known.
  10. ## Options
  11. ### `true`
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. unknown {}
  16. ```
  17. <!-- prettier-ignore -->
  18. ```css
  19. tag {}
  20. ```
  21. The following patterns are _not_ considered violations:
  22. <!-- prettier-ignore -->
  23. ```css
  24. input {}
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. ul li {}
  29. ```
  30. <!-- prettier-ignore -->
  31. ```css
  32. li > a {}
  33. ```
  34. ## Optional secondary options
  35. ### `ignore: ["custom-elements", "default-namespace"]`
  36. #### `"custom-elements"`
  37. Allow custom elements.
  38. The following patterns are considered violations:
  39. <!-- prettier-ignore -->
  40. ```css
  41. unknown {}
  42. ```
  43. <!-- prettier-ignore -->
  44. ```css
  45. x-Foo {}
  46. ```
  47. The following patterns are _not_ considered violations:
  48. <!-- prettier-ignore -->
  49. ```css
  50. x-foo {}
  51. ```
  52. #### `"default-namespace"`
  53. Allow unknown type selectors if they belong to the default namespace.
  54. The following patterns are considered violations:
  55. <!-- prettier-ignore -->
  56. ```css
  57. namespace|unknown {}
  58. ```
  59. The following patterns are _not_ considered violations:
  60. <!-- prettier-ignore -->
  61. ```css
  62. unknown {}
  63. ```
  64. ### `ignoreNamespaces: ["/regex/", /regex/, "string"]`
  65. Given:
  66. ```
  67. ["/^my-/", "custom-namespace"]
  68. ```
  69. The following patterns are _not_ considered violations:
  70. <!-- prettier-ignore -->
  71. ```css
  72. custom-namespace|unknown {}
  73. ```
  74. <!-- prettier-ignore -->
  75. ```css
  76. my-namespace|unknown {}
  77. ```
  78. <!-- prettier-ignore -->
  79. ```css
  80. my-other-namespace|unknown {}
  81. ```
  82. ### `ignoreTypes: ["/regex/", /regex/, "string"]`
  83. Given:
  84. ```
  85. ["/^my-/", "custom-type"]
  86. ```
  87. The following patterns are _not_ considered violations:
  88. <!-- prettier-ignore -->
  89. ```css
  90. custom-type {}
  91. ```
  92. <!-- prettier-ignore -->
  93. ```css
  94. my-type {}
  95. ```
  96. <!-- prettier-ignore -->
  97. ```css
  98. my-other-type {}
  99. ```