Skip to content

SCSS-Lint 0.31.0

Choose a tag to compare

@sds sds released this 10 Dec 21:58
· 663 commits to main since this release

This release contains a large number of bug fixes for new features introduced by version 0.30.0.

A new feature that will be of interest to many is the ability to enable/disable lints via inline comments. A big thanks to @mbertolacci for the implementation!

New Features

  • Add support for disabling/enabling linters via inline comments
  • Add smacss sort order option for PropertySortOrder
  • Add recess sort order option for PropertySortOrder
  • Add allow_leading_underscore option to NameFormat to allow the leading
    underscore convention to denote private functions

Changes

  • Change IdWithExtraneousSelector to IdSelector and modify behavior to
    always report a lint when an ID appears as part of a selector.

Bug Fixes

  • Fix regression in default configuration for QualifyingElement so that
    elements with attributes, classes, or ids are disallowed by default
  • Fix error message for TrailingSemicolon where lines without a semicolon
    would incorrectly be reported as having a space before the semicolon
  • Fix BangFormat linter to not report lints for exclamation points in
    strings
  • Update minimum version of sass gem to 3.4.1 to fix a parser bug
  • Fix DuplicateProperty not reporting duplicate properties in nested rule
    sets
  • Fix TrailingSemicolon handling of comma-separated @imports
  • Fix SelectorFormat to not allow format of pseudo-selectors to be defined,
    as they are always hyphenated lowercase
  • Fix Indentation to not crash on @at-root directives with comments inside
  • Fix DuplicateProperty to report correct name of duplicated property
  • Fix EmptyLineBetweenBlocks to allow trailing comments after rule sets
    (e.g. control comments disabling linters)