Skip to content
- Deprecated: 15 rules (#2197, #2285 & #2309).
block-no-single-line. Use block-opening-brace-newline-after and block-closing-brace-newline-before rules with the option "always" instead.
declaration-block-properties-order. Use the stylelint-order plugin pack instead.
rule-nested-empty-line-before and rule-non-nested-empty-line-before. Use the new rule-empty-line-before rule instead.
time-no-imperceptible. Use the new time-min-milliseconds rule with 100 as its primary option.
- It is beyond the scope of stylelint's core package to effectively validate against the CSS spec. Please investigate csstree and css-values for this functionality, and contribute to those projects and to stylelint plugins wrapping them. csstree already has a stylelint plugin, and css-values needs one to be developed. The following rules are deprecated for this reason.
-
media-feature-no-missing-punctuation.
- selector-no-empty.
- A plugin is a better package for a rule that wraps a third-party library. The following rules are deprecated for this reason. We encourage users to create and help maintain plugins for these rules.
-
no-browser-hacks
- no-indistinguishable-colors
- no-unsupported-browser-features
- The following rules did not seem useful. If you liked these rules, please create plugins for them.
-
custom-property-no-outside-root
- root-no-standard-properties
- selector-root-no-composition.
- The following rules did not work well.
-
stylelint-disable-reason could not enforce providing a reason
- declaration-block-no-ignored-properties could not reliably account for replaced elements.
- Deprecated: 4 options (#2213).
"all-nested" option for at-rule-empty-line-before. Use the "inside-block" option instead.
"blockless-group" option for at-rule-empty-line-before. Use the "blockless-after-blockless" option instead.
"between-comments" option for comment-empty-line-before. Use the "after-comment" option instead.
"at-rules-without-declaration-blocks" option for max-nesting-depth. Use the "blockless-at-rules" option instead.
- Added:
time-min-milliseconds rule, to replace time-no-imperceptible (#2289).
- Added:
except: ["after-same-name"] option to at-rule-empty-line-before (#2225).
- Fixed:
configOverrides now work with extends (#2295).
- Fixed:
max-line-length no longer reports incorrect column positions for lines with url() or import (#2287).
- Fixed:
selector-pseudo-class-no-unknown no longer warns for proprietary webkit pseudo-classes (#2264).
- Fixed:
unit-no-unknown accepts fr units (#2308).