Releases: sds/scss-lint
Releases · sds/scss-lint
SCSS-Lint 0.24.1
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
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
toMergeableSelector
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
intoHexLength
(checking length) andHexNotation
(checking lowercase / uppercase)
SCSS-Lint 0.23.1
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
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. prefers4
over4.0
) XMLReporter
now includescolumn
andlength
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 preferinline-block
mixin over
display: inline-block
- Add
DuplicateRoot
linter which checks for identical rules used as root
selectors in a document