stylelint
Advanced tools
Changelog
4.5.1
no-unsupported-browser-features
options now optional.no-duplicate-selectors
now ignores keyframe selectors.Changelog
4.5.0
"warn": true
secondary option. Use "severity": "warning"
, instead.color-no-named
rule. Use the new color-named
rule, with the "never"
option instead.declaration-block-no-single-line
rule. Use the new block-no-single-line
rule instead.rule-no-duplicate-properties
rule. Use the new declaration-block-no-duplicate-properties
rule instead.rule-no-shorthand-property-overrides
rule. Use the new declaration-block-no-shorthand-property-overrides
rule instead.rule-properties-order
rule. Use the new declaration-block-properties-order
rule instead.rule-trailing-semicolon
rule. Use the new declaration-block-trailing-semicolon
rule instead.true
option for emptyLineBefore
when using property groups in rule-properties-order
. Use the new "always"
or "never"
option instead."always"
option for font-weight-notation
. Use the new always-where-possible
option instead.severity
secondary option as a replacement for "warn": true
to alter a rule's severity.block-no-single-line
rule.color-named
rule.declaration-block-no-duplicate-properties
rule.declaration-block-no-shorthand-property-overrides
rule.declaration-block-properties-order
rule.declaration-block-trailing-semicolon
rule.max-nesting-depth
rule.no-browser-hacks
rule.no-descending-specificity
rule.no-indistinguishable-colors
rule.no-unsupported-browser-features
rule.selector-max-specificity
rule.string-no-newline
rule."always"
and "never"
option to rule-properties-order
emptyLineBefore
when using property groupsnamed-where-possible
option to font-weight-notation
.unspecified: "bottomAlphabetical"
option to the rule-properties-order
rule.ignoreAtRules: []
option to the block-opening-brace-space-before
and block-closing-brace-newline-after
rules.&
) as a prefix in selector-no-type
.stylelint-disable-line
feature.withinComments
, withinStrings
, and checkStrings
options to styleSearch
, and insideString
property to the styleSearch
match object.resolveNestedSelectors
option to the selector-class-pattern
rule.stylelint-disable
is misused.selector-no-vendor-prefix
no longer delivers two warnings on vendor-prefixed pseudo-elements with two colons, e.g. ::-moz-placeholder
.no-duplicate-selectors
rule now resolves nested selectors.font-weight-notation
does not throw false warnings when normal
is used in certain ways.selector-no-*
and selector-*-pattern
rules now ignore custom property sets.no-duplicate-selectors
.selector-no-id
does not warn about Sass interpolation inside an :nth-child()
argument.rule-nested-empty-line-before
, rule-non-nested-empty-line-before
, comment-empty-line-before
and at-rule-empty-line-before
.number-leading-zero
, function-comma-space-*
, and declaration-colon-*
do not throw false positives in url()
arguments.Changelog
4.4.0
ignore: "relative"
option for font-weight-notation
.declaration-colon-space/newline-before/after
rules now ignore scss maps.selector-list-comma-newline-after
allows //
comments after the comma.Changelog
4.3.4
rule-properties-order
.//
comments when using SCSS parser.no-unknown-animations
ignores variables.no-unknown-animations
does not erroneously flag functions like steps()
and cubic-bezier()
.time-no-imperceptible
.font-family-name-quotes
and font-weight-notation
ignore variables.media-feature-no-missing-punctuation
handles space-padded media features.--config
relatives paths that don't start with ./
to be rejected.Changelog
4.3.3
stylelint.utils.ruleTester
because its dependencies broke things.Changelog
4.3.0
font-family-name-quotes
rule.font-weight-notation
rule.media-feature-no-missing-punctuation
rule.no-duplicate-selectors
rule.no-invalid-double-slash-comments
rule.no-unknown-animations
rule.property-value-blacklist
rule.property-value-whitelist
rule.time-no-imperceptible
rule.ignore: "descendant"
and ignore: "compounded"
options for selector-no-type
.property-blacklist
, property-unit-blacklist
, property-unit-whitelist
, property-value-blacklist
, and property-whitelist
.property-unit-blacklist
and property-unit-whitelist
, e.g. if you enter animation
it now also checks -webkit-animation
.--config
argument, not just paths.codeFilename
option to Node.js API.stylelint.rules
to make Stylelint even more extensible.stylelint-rule-tester
into this repo, and exposed it at stylelint.utils.ruleTester
.rule-properties-order
empty line detection when the two newlines were separated
by some other whitespace."alphabetical"
primary option
with rule-properties-order
.ignoreFiles
handling of absolute paths.ignoreFiles
uses the configBasedir
option to interpret relative paths.