3

Is there a stylelint rule to obtain the following?

I've read the documentation but I wasn't unable to find one

/* bad */
a {

  color: pink;
}

/* good */
a {
  color: pink;
}
tagliala
  • 169
  • 1
  • 11

1 Answers1

3

This solves my issue

"declaration-empty-line-before": ["always", {
  "except": ["first-nested"],
  "ignore": ["after-comment", "after-declaration"]
}],

Ref: https://stylelint.io/user-guide/rules/declaration-empty-line-before/#first-nested

tagliala
  • 169
  • 1
  • 11