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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # block-closing-brace-newline-before
  2. Require a newline or disallow whitespace before the closing brace of blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: pink;
  6. }
  7. /** ↑
  8. * The newline before this brace */
  9. ```
  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`: `"always"|"always-multi-line"|"never-multi-line"`
  13. ### `"always"`
  14. There _must always_ be a newline before the closing brace.
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { color: pink;}
  19. ```
  20. The following patterns are _not_ considered violations:
  21. <!-- prettier-ignore -->
  22. ```css
  23. a { color: pink;
  24. }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. a {
  29. color: pink;
  30. }
  31. ```
  32. ### `"always-multi-line"`
  33. There _must always_ be a newline before the closing brace in multi-line blocks.
  34. The following patterns are considered violations:
  35. <!-- prettier-ignore -->
  36. ```css
  37. a {
  38. color: pink;}
  39. ```
  40. The following patterns are _not_ considered violations:
  41. <!-- prettier-ignore -->
  42. ```css
  43. a { color: pink; }
  44. ```
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { color: pink;
  48. }
  49. ```
  50. ### `"never-multi-line"`
  51. There _must never_ be whitespace before the closing brace in multi-line blocks.
  52. The following patterns are considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a {
  56. color: pink; }
  57. ```
  58. The following patterns are _not_ considered violations:
  59. <!-- prettier-ignore -->
  60. ```css
  61. a { color: pink; }
  62. ```
  63. <!-- prettier-ignore -->
  64. ```css
  65. a {
  66. color: pink;}
  67. ```