Skip to content

Releases: sds/scss-lint

SCSS-Lint 0.45.0

17 Feb 00:22
@sds sds
Compare
Choose a tag to compare

Minor release with some bug fixes and new features.

  • Add outline-{color,style,width} properties to recess sort order list
  • Fix TrailingSemicolon to not report false positives for single line
    list/map literals
  • Improve compatibility with files that use CRLF and CR for newlines.
  • Load plugin_directories relative to the config file itself
  • Fix bug in SingleLinePerProperty that prevented the linter from checking
    nested selectors
  • Add SpaceAfterVariableColon which checks for the spacing after a variable
    colon
  • Relax rake dependency version to allow >= 0.9
  • Improve BorderZero by adding the offending border property to the lint
    description

SCSS-Lint 0.44.0

22 Jan 02:40
@sds sds
Compare
Choose a tag to compare

A release consisting mostly of bug fixes and adding to the list of recognized properties. One noteworthy new feature is the global severity option, which allows you to change the default severity of all linters (by default they are all warnings).

New Features

  • Add --color and --no-color options
  • Add global severity option to allowing you to specify the default severity
    for all linters

Changes

  • Add ::content and ::shadow to list of elements recognized by PseudoElement
  • Add background-attachment, transform-{box,origin,style}, and transform-{delay,duration,property,timing-function} properties to SMACSS property sort order list
  • Add support for CSS Logical Properties to PropertySpelling
  • Add initial to list of special values in VariableForProperty
  • Add ::-webkit-full-page-media, ::-webkit-search-decoration, and ::-webkit-search-results-decoration pseudo elements to PseudoElement
  • Add backdrop-filter to list of known properties

Bug Fixes

  • Fix UnnecessaryParentReference to not report selectors with multiple parent references
  • Fix PropertySortOrder to properly handle duplicated properties
  • Fix NameFormat to report incorrectly-named variables passed as function
    arguments

SCSS-Lint 0.43.2

01 Dec 04:03
@sds sds
Compare
Choose a tag to compare

Another hotfix release for issues introduced by 0.43.0.

  • Fix passing a file via STDIN
  • Fix ChainedClasses to work with comma sequences split over multiple lines

SCSS-Lint 0.43.1

01 Dec 01:12
@sds sds
Compare
Choose a tag to compare

A minor hotfix release in response to some new features introduced by 0.43.0.

  • Add placeholder, -moz-*, -ms-*, and -webkit-* to PseudoElement
    linter
  • Fix SpaceAfterComma to not infinite loop on map literals as arguments
    spanning multiple lines

SCSS-Lint 0.43.0

23 Nov 08:00
@sds sds
Compare
Choose a tag to compare

A major release with a number of bug fixes and new features. Also includes some performance improvements courtesy of @srawlins.

A notable feature is the ability to lint files based via the standard input stream. See the documentation on the --stdin-file-path flag for details.

New Features

  • Add whitelist parameter to MergeableSelector
  • Add PseudoElement linter which checks for the use of double colons with
    pseudo elements and single colons with pseudo classes
  • Add disabled_properties option to PropertySpelling allowing properties
    to be prohibited from use
  • Add support for linting files via STDIN by specifying --stdin-file-path
    so the appropriate configuration can be applied based on the path
  • Add style option to Comment linter allowing loud comments to be
    preferred over silent comments
  • Add ChainedClasses linter which checks for the use of chained classes
    (a.k.a. adjoining classes)
  • Add at_least_one_space option to SpaceAroundOperator linter

Changes

  • EmptyLineBetweenBlocks lints on @media and @at-root now
  • Improve performance of Indentation linter
  • Change Indentation linter with allow_non_nested_indentation to allow
    any node type to be arbitrarily indented as long as it a child of the root
    document node (previously only rule set declarations were allowed)

Bug Fixes

  • Fix TrailingSemicolon false positive for multiline variable declarations
  • Fix control comments to work when applied on consecutive lines
  • Fix linters to not inspect interpolation in /*...*/ comments due to the
    large number of bugs with the source ranges returned by the Sass parser
  • Fix line number reporting for SingleLinePerSelector with comma sequences
    containing multiple sequences on a single line
  • Fix SpaceAfterVariableName to not report lints for colons with spaces
    inside map literals
  • Fix MergeableSelector to not report selectors with multiple parent
    references
  • Fix SingleLinePerSelector to report correct line number for sequences
    spread over multiple lines

SCSS-Lint 0.42.2

02 Oct 16:17
@sds sds
Compare
Choose a tag to compare

A minor release with some bug fixes.

  • Fix SpaceAroundOperator to allow newlines
  • Fix HexValidation to ignore mid-word hex strings
  • Fix ColorVariable to ignore color functions in variable declaration

SCSS-Lint 0.42.1

25 Sep 17:50
@sds sds
Compare
Choose a tag to compare

A minor release to address some bugs introduced by 0.42.0.

  • Fix TrailingSemicolon for variables with !default and !global.
  • Check !default and !global variable declarations and !optional @extend
    directives in BangFormat

SCSS-Lint 0.42.0

24 Sep 18:15
@sds sds
Compare
Choose a tag to compare

Mostly bug fixes with a few tiny enhancements.

New Features

  • Enhance Rake task to support command line flags
  • Add no_space and at_least_one_space style options to SpaceAfterComma

Changes

  • Improve ColorVariable to flag uses of rgb/rgba/hsl/hsla
  • Return successful status code instead of 81 when all files matched by
    specified glob patterns are excluded by --exclude flags and exclude
    configuration settings, as it was confusing.

Bug Fixes

  • Fix SpaceAroundOperator linter to not report false positives for operators
    in interpolation
  • Improve performance of ElsePlacement linter to better handle large lists of
    @if/@else if/@else statements
  • Fix TrailingSemicolon to report missing semicolons when trailing comment
    ended with a semicolon
  • Fix VariableForProperty to not erroneously report property values with
    !important

SCSS-Lint 0.41.0

24 Aug 05:06
@sds sds
Compare
Choose a tag to compare

New Features

  • Add DisableLinterReason linter which enforces including a comment
    explaining why a linter was disabled via a control comment
  • Add SpaceAroundOperator linter which enforces whitespace padding around
    mathematical operators
  • Add CleanFiles reporter which displays all files that were free of lints
  • Add flexbox properties to recess preset sort order
  • Add flexbox properties to smacss ordering
  • Add TransitionAll linter which reports the use of transition: all

Changes

  • Improve SingleLinePerSelector to report selectors with descendent selectors
    on separate lines

Bug Fixes

  • Fix SpaceAfterVariableName linter not being included in linter set
  • Fix handling of consecutive control comments to properly disable linters
  • Fix handling of control comments preceded by normal comments
  • Fix NestingDepth linter not handling rules with no selectors
  • Fix MergeableSelector messages to condense newlines
  • Fix UnnecessaryMantissa to not report decimal values in quoted strings

SCSS-Lint 0.40.1

30 Jun 23:47
@sds sds
Compare
Choose a tag to compare

This is a hotfix release that corrects an issue with linters automatically being enabled even if they were disabled in the default configuration.

Bug Fixes

  • Fix regression where linters were enabled by default even if explicitly
    disabled in the default configuration