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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # max-empty-lines
  2. Limit the number of adjacent empty lines.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {}
  6. /* ← */
  7. /* ← */
  8. a {} /* ↑ */
  9. /** ↑
  10. * These lines */
  11. ```
  12. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  13. ## Options
  14. `int`: Maximum number of adjacent empty lines allowed.
  15. For example, with `2`:
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a {}
  20. b {}
  21. ```
  22. Comment strings are also checked -- so the following is a violation:
  23. <!-- prettier-ignore -->
  24. ```css
  25. /*
  26. Call me Ishmael.
  27. Some years ago--never mind how long precisely-—...
  28. */
  29. ```
  30. The following patterns are _not_ considered violations:
  31. <!-- prettier-ignore -->
  32. ```css
  33. a {}
  34. b {}
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a {}
  39. b {}
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a {}
  44. b {}
  45. ```
  46. ## Optional secondary options
  47. ### `ignore: ["comments"]`
  48. Only enforce the adjacent empty lines limit for lines that are not comments.
  49. For example, with `2` adjacent empty lines:
  50. The following patterns are considered violations:
  51. <!-- prettier-ignore -->
  52. ```css
  53. /* horse */
  54. a {}
  55. b {}
  56. ```
  57. The following patterns are _not_ considered violations:
  58. <!-- prettier-ignore -->
  59. ```css
  60. /*
  61. Call me Ishmael.
  62. Some years ago -- never mind how long precisely -- ...
  63. */
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a {
  68. /*
  69. Comment
  70. inside the declaration with a lot of empty lines...
  71. */
  72. color: pink;
  73. }
  74. ```