Skip to content

SCSS-Lint 0.34.0

Choose a tag to compare

@sds sds released this 23 Feb 03:55
· 599 commits to main since this release

This release includes a large number of new linters.

One major change of note is removal of support for per-directory configuration files and the inherit_from directive in configuration files. From now on, only the .scss-lint.yml file found in the current directory that scss-lint is being run from will be loaded (or specified via the --config flag).

New Features

  • Add ImportantRule linter which reports uses of !important in properties
  • Add VariableForProperty linter which enforces using variables for
    specified property values instead of literal values
  • Add convention option to BorderZero allowing none to be preferred over
    zero
  • Add separate_groups option to PropertySortOrder to specify that groups
    of properties should be visually separated
  • Add PropertyCount linter which reports rule sets with a large number of
    properties
  • Add ColorVariable linter which enforces the use of color literals in
    variable declarations only
  • Add break-after, break-before, break-inside, and text-size-adjust
    to list of recognized properties
  • Add allow_non_nested_indentation option to Indentation linter
  • Allow files without .scss/.css extension to be linted if they are
    passed explicitly (i.e. you do not specify a directory, but the file itself)

Changes

  • Remove support for per-directory configuration and inherit_from from
    the configuration system

Bug Fixes

  • Fix bug in StringQuotes where Sass script in non-silent comments would
    cause a crash
  • Fix control comments placed before @include blocks to apply within them
  • Fix crash in PropertySortOrder when non-existent preset sort order or
    otherwise invalid sort order are specified in the configuration
  • Fix recognition of control comments in selector comma sequences
  • Fix crash in BangFormat, ImportantRule, and VendorPrefixes when linting
    properties with list literals containing empty lists