Skip to content

Tags: KirillGrishin/scss-lint

Tags

v0.44.0

Toggle v0.44.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.44.0

* Add `--color` and `--no-color` options
* Add `::content` and `::shadow` to list of elements recognized by
  `PseudoElement`
* Fix `UnnecessaryParentReference` to not report selectors with multiple parent
  references
* 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
* Fix `PropertySortOrder` to properly handle duplicated properties
* Fix `NameFormat` to report incorrectly-named variables passed as function
  arguments
* Add global `severity` option to allowing you to specify the default severity
  for all linters

v0.43.2

Toggle v0.43.2's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.43.2

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

v0.43.1

Toggle v0.43.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.43.1

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

v0.43.0

Toggle v0.43.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.43.0

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

v0.42.2

Toggle v0.42.2's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.2 release

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

v0.42.1

Toggle v0.42.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.1 release

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

v0.42.0

Toggle v0.42.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.42.0 release

New Features

* Enhance Rake task to support command line flags
* Add `no_space` and `at_least_on_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`

v0.41.0

Toggle v0.41.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.41.0 release

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

v0.40.1

Toggle v0.40.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.40.1 release

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

v0.40.0

Toggle v0.40.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
0.40.0 release

= New Features

* Add support for loading custom linters via the `plugin_directories` and
  `plugin_gems` configuration options (experimental)
* Add `ExtendDirective` linter which checks for any usage of the `@extend`
  directive.
* Add `TrailingWhitespace` linter which reports whitespace characters at the
  end of a line
* Add `SpaceAfterVariableName` linter which checks that there are no spaces
  between a variable name and a colon

= Changes

* Change `NameFormat` to no longer check placeholder names, as this is handled
  by the `SelectorFormat` linter
* Change `NestingDepth` to allow parent selectors to be ignored in depth count
  via the `ignore_parent_selectors` configuration option

= Bug Fixes

* Fix `ColorVariable` from crashing when variable interpolation occurs in
  multiline comments
* Fix `PropertySortOrder`'s `ignore_unspecified: false` behavior to not care
  about the relative order of unspecified properties at the end of a list of
  properties
* Fix `PropertyUnits` for properties that have multiple unit-like values (e.g.
  shorthand properties) and quoted values
* Fix control comment processing for `FinalNewline`, `SpaceBetweenParens`, and
  `TrailingNewline`
* Fix `ElsePlacement` to lint nested `@if` statements