Repository navigation
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
DuplicateRoottoMergeableSelectorlinter to check for nested
rule sets that can be merged in addition to root-level ones - Add
ConfigReporterformatter which returns a valid.scss-lint.yml
configuration file where all linters that caused a lint are disabled - Fix bug in
Indentationlinter where@at-rootdirectives were not
treated as an increase in indentation level - Fix
ZeroUnitto only report lints for zero values in
lengths - Fix crash in
SingleLinePerSelectorfor selectors containing only
interpolation - Add
--show-formattersoption to display all available formatters - Add
HexValidationto validate hex colors - Split
HexFormatintoHexLength(checking length) andHexNotation
(checking lowercase / uppercase)