Releases: sds/scss-lint
SCSS-Lint 0.45.0
Minor release with some bug fixes and new features.
- Add
outline-{color,style,width}
properties torecess
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
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 warning
s).
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 byPseudoElement
- Add
background-attachment
,transform-{box,origin,style}
, andtransform-{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 inVariableForProperty
- Add
::-webkit-full-page-media
,::-webkit-search-decoration
, and::-webkit-search-results-decoration
pseudo elements toPseudoElement
- 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
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
A minor hotfix release in response to some new features introduced by 0.43.0.
- Add
placeholder
,-moz-*
,-ms-*
, and-webkit-*
toPseudoElement
linter - Fix
SpaceAfterComma
to not infinite loop on map literals as arguments
spanning multiple lines
SCSS-Lint 0.43.0
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 toMergeableSelector
- Add
PseudoElement
linter which checks for the use of double colons with
pseudo elements and single colons with pseudo classes - Add
disabled_properties
option toPropertySpelling
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 toComment
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 toSpaceAroundOperator
linter
Changes
EmptyLineBetweenBlocks
lints on@media
and@at-root
now- Improve performance of
Indentation
linter - Change
Indentation
linter withallow_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
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
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 inBangFormat
SCSS-Lint 0.42.0
Mostly bug fixes with a few tiny enhancements.
New Features
- Enhance Rake task to support command line flags
- Add
no_space
andat_least_one_space
style options toSpaceAfterComma
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 andexclude
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
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 oftransition: 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
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