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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # block-opening-brace-newline-after
  2. Require a newline after the opening brace of blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. ↑ color: pink; }
  7. /** ↑
  8. * The newline after this brace */
  9. ```
  10. This rule allows an end-of-line comment followed by a newline. For example,
  11. <!-- prettier-ignore -->
  12. ```css
  13. a { /* end-of-line comment */
  14. color: pink;
  15. }
  16. ```
  17. Refer to [combining rules](../../../docs/user-guide/rules/combine.md) for more information on using this rule with [`block-opening-brace-newline-before`](../block-opening-brace-newline-before/README.md) to disallow single-line rules.
  18. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  19. ## Options
  20. `string`: `"always"|"always-multi-line"|"never-multi-line"`
  21. ### `"always"`
  22. There _must always_ be a newline after the opening brace.
  23. The following patterns are considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a{ color: pink; }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a{ color: pink;
  31. }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a{ /* end-of-line comment
  36. with a newline */
  37. color: pink;
  38. }
  39. ```
  40. The following patterns are _not_ considered violations:
  41. <!-- prettier-ignore -->
  42. ```css
  43. a {
  44. color: pink; }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a
  49. {
  50. color: pink; }
  51. ```
  52. <!-- prettier-ignore -->
  53. ```css
  54. a { /* end-of-line comment */
  55. color: pink;
  56. }
  57. ```
  58. ### `"always-multi-line"`
  59. There _must always_ be a newline after the opening brace in multi-line blocks.
  60. The following patterns are considered violations:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a{color: pink;
  64. }
  65. ```
  66. The following patterns are _not_ considered violations:
  67. <!-- prettier-ignore -->
  68. ```css
  69. a { color: pink; }
  70. ```
  71. <!-- prettier-ignore -->
  72. ```css
  73. a {
  74. color: pink; }
  75. ```
  76. ### `"never-multi-line"`
  77. There _must never_ be whitespace after the opening brace in multi-line blocks.
  78. The following patterns are considered violations:
  79. <!-- prettier-ignore -->
  80. ```css
  81. a { color: pink;
  82. }
  83. ```
  84. The following patterns are _not_ considered violations:
  85. <!-- prettier-ignore -->
  86. ```css
  87. a { color: pink; }
  88. ```
  89. <!-- prettier-ignore -->
  90. ```css
  91. a {color: pink;
  92. }
  93. ```