Skip to content

SCSS-Lint 0.30.0

Choose a tag to compare

@sds sds released this 11 Nov 02:59
· 706 commits to main since this release

New Features

  • Add VendorPrefixes linter which ensures only whitelisted vendor-prefixed
    properties are used
  • Add scss_files configuration option allowing a default set of files to be
    linted if no files are explicitly specified
  • Add BangFormat linter which enforces spacing around the ! for
    !important and !default
  • Add new_line option to SpaceBeforeBrace linter enforcing opening curly
    braces start on a new line
  • Add NestingDepth linter which ensures selectors are nested only up to a
    specified maximum depth
  • Add support to SelectorFormat for specifying different conventions for
    different types of selectors via the <type>_convention options
  • Add @import check to TrailingSemicolon
  • Add support for differentiating @includes with actual content versus
    no-content @includes in DeclarationOrder
  • Add support for checking the ordering of content within @includes
  • Add ImportPath linter which ensures paths for @import directives follow
    a certain format
  • Add QualifyingElement linter which checks for unnecessarily-qualified
    element selectors
  • Add --out flag which allows the output of the last formatter specified via
    the --format flag to be redirected to a file
  • Add --require flag allowing arbitrary Ruby modules to be loaded (facilitating
    custom reporters)

Changes

  • Improve message reported by PropertySortOrder to specify the expected sort
    order
  • Enforce UTF-8 encoding by default
  • Change BEM convention of SelectorFormat convention option to
    hyphenated_BEM, and introduce BEM format as specified in
    https://bem.info/method/definitions/
  • Prefix all syntax error messages with "Syntax Error:"

Bug Fixes

  • Fix bug in SpaceAfterPropertyName/TrailingSemicolon linters where lint
    would be reported for oneline properties following a selector with
    interpolation
  • Fix bug in SpaceAfterPropertyColon/SpaceAfterPropertyName/TrailingSemicolon
    linters where lint would be reported for one-line properties following a
    selector with interpolation
  • Fix PropertySpelling linter to check the names of nested properties