Skip to content

stylelint 7.1.0

  • Added: block-closing-brace-empty-line-before rule.
  • Added: comment-no-empty rule.
  • Added: custom-property-empty-line-before rule.
  • Added: declaration-empty-line-before rule.
  • Added: media-feature-name-case rule.
  • Added: selector-nested-pattern rule.
  • Added: selector-pseudo-class-blacklist rule.
  • Added: selector-pseudo-class-whitelist rule.
  • Added: regex support to the ignore* secondary options of the *-no-unknown rules.
  • Added: ignore: ["blockless-after-same-name-blockless"] option to at-rule-empty-line-before.
  • Added: except: ["blockless-after-same-name-blockless"] option to at-rule-empty-line-before.
  • Added: ignore: ["empty-lines"] option to no-eol-whitespace.
  • Added: ignoreTypes option to selector-no-type to whitelist allowed types for selectors.
  • Fixed: color-named now ignores declarations that accept custom idents.
  • Fixed: font-family-name-quotes correctly handles numerical font weights for the font shorthand property.
  • Fixed: indentation now correctly handles Windows line endings within parentheticals.
  • Fixed: media-feature-no-missing-punctuation now ignores media features containing complex values e.g. (min-width: ($var - 20px)) and (min-width: calc(100% - 20px)).
  • Fixed: no-descending-specificity message to correctly show which selector should come first.
  • Fixed: selector-combinator-space-after and selector-combinator-space-before now ignore operators within parenthetical non-standard constructs.