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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # declaration-block-trailing-semicolon
  2. Require or disallow a trailing semicolon within declaration blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { background: orange; color: pink; }
  6. /** ↑
  7. * This semicolon */
  8. ```
  9. The trailing semicolon is the _last_ semicolon in a declaration block and it is optional.
  10. This rule ignores:
  11. - Less mixins
  12. - trailing `//` comments
  13. - declaration blocks containing nested (at-)rules
  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"|"never"`
  17. ### `"always"`
  18. There _must always_ be a trailing semicolon.
  19. The following patterns are considered violations:
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { color: pink }
  23. ```
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { background: orange; color: pink }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { @include foo }
  31. ```
  32. The following patterns are _not_ considered violations:
  33. <!-- prettier-ignore -->
  34. ```css
  35. a { color: pink; }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a { background: orange; color: pink; }
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a { @include foo; }
  44. ```
  45. ### `"never"`
  46. There _must never_ be a trailing semicolon.
  47. The following patterns are considered violations:
  48. <!-- prettier-ignore -->
  49. ```css
  50. a { color: pink; }
  51. ```
  52. <!-- prettier-ignore -->
  53. ```css
  54. a { background: orange; color: pink; }
  55. ```
  56. The following patterns are _not_ considered violations:
  57. <!-- prettier-ignore -->
  58. ```css
  59. a { color: pink }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { background: orange; color: pink }
  64. ```
  65. ## Optional secondary options
  66. ### `ignore: ["single-declaration"]`
  67. Ignore declaration blocks that contain a single declaration.
  68. The following patterns are _not_ considered violations:
  69. <!-- prettier-ignore -->
  70. ```css
  71. a { color: pink }
  72. ```
  73. <!-- prettier-ignore -->
  74. ```css
  75. a { color: pink; }
  76. ```