Skip to content

Releases: sds/scss-lint

SCSS-Lint 0.24.1

21 May 20:44
@sds sds
Compare
Choose a tag to compare

Simple bugfix release. Included is a fix for scss-lint crashing on Windows.

  • Fix bug in TrailingSemicolonAfterPropertyValue to not crash on a one-line
    property without a semicolon
  • Fix crash due to DefaultReporter not being loaded on Windows machines
  • Fix bug in MergeableSelector where it would crash checking rules with
    interpolation

SCSS-Lint 0.24.0

14 May 18:36
@sds sds
Compare
Choose a tag to compare

Includes a variety of new features and bug fixes. Big feature to look out for is the MergeableSelector linter, which can report selectors which can be merged into other selectors, for example turning:

h1 {
  margin: 10px;
}

// Second copy of h1 rule
h1 {
  text-transform: uppercase;
}

into:

h1 {
  margin: 10px;
  text-transform: uppercase;
}

Full list of changes is below.

  • Extend DuplicateRoot to MergeableSelector linter to check for nested
    rule sets that can be merged in addition to root-level ones
  • Add ConfigReporter formatter which returns a valid .scss-lint.yml
    configuration file where all linters that caused a lint are disabled
  • Fix bug in Indentation linter where @at-root directives were not
    treated as an increase in indentation level
  • Fix ZeroUnit to only report lints for zero values in
    lengths
  • Fix crash in SingleLinePerSelector for selectors containing only
    interpolation
  • Add --show-formatters option to display all available formatters
  • Add HexValidation to validate hex colors
  • Split HexFormat into HexLength (checking length) and HexNotation
    (checking lowercase / uppercase)

SCSS-Lint 0.23.1

22 Apr 18:28
@sds sds
Compare
Choose a tag to compare

This release includes some fixes for bugs specifically introduced by 0.23.0.

  • Fix bug in SpaceAfterPropertyColon linter for properties with no
    terminating semicolon
  • Fix bug in DuplicateRoot linter where incorrect lints would be reported
    in @keyframes directives

SCSS-Lint 0.23.0

22 Apr 00:28
@sds sds
Compare
Choose a tag to compare

This release is a mix of bug fixes and new linters. A linter to check out is the DuplicateRoot linter, which will check for duplicate selectors at the root level of a stylesheet.

  • Fix character escaping in XML attributes output by XMLReporter
  • Fix bug in ZeroUnit where hex color codes or real numbers with a zero
    decimal unit would report a false positive
  • Fix bug in Shorthand linter where !important priority overrides would
    prevent lints from being reported
  • Add UnnecessaryMantissa linter which checks for zero value decimals in
    numbers (i.e. prefers 4 over 4.0)
  • XMLReporter now includes column and length information for lints
  • Fix class of bugs in SpaceBeforeBrace where a false positive could be
    reported for braces that aren't part of declarations
  • Teach Compass::PropertyWithMixin to prefer inline-block mixin over
    display: inline-block
  • Add DuplicateRoot linter which checks for identical rules used as root
    selectors in a document