Skip to content

SCSS-Lint 0.29.0

Choose a tag to compare

@sds sds released this 07 Oct 18:23
· 753 commits to main since this release

Mostly bug fixes with a few new features. Most notable is the new linter SelectorFormat which renders the CapitalizationInSelector linter obsolete.

New features

  • Add TrailingZero linter which checks for unnecessary zeros following a
    decimal point
  • Add SelectorFormat linter which checks that the names of ids, classes, etc.
    in selectors match a desired convention
  • Add JSON formatter

Changes

  • Update list of known properties recognized by PropertySpelling lint
  • Enhance TrailingSemicolon to check for more than one semicolon at the end
    of a statement
  • Remove CapitalizationInSelector, which has been superseded by the more
    powerful SelectorFormat linter

Bug Fixes

  • Fix bug where SassScript selectors referring to the current selector would
    result in a crash
  • Fix bug in EmptyLineBetweenBlocks linter where lint would incorrectly be
    reported when comments immediately followed the closing brace of a rule set
  • Fix bug in PropertySortOrder where properties within media queries were
    not checked for sort order
  • Fix bug in UrlQuotes linter where lint would be reported for data URIs
  • Fix bug in UnnecessaryParentReference where selectors with multiple &
    references where one & was concatenated would incorrectly report a lint