Skip to content

stylelint 4.5.0

  • Deprecated: "warn": true secondary option. Use "severity": "warning", instead.
  • Deprecated: color-no-named rule. Use the new color-named rule, with the "never" option instead.
  • Deprecated: declaration-block-no-single-line rule. Use the new block-no-single-line rule instead.
  • Deprecated: rule-no-duplicate-properties rule. Use the new declaration-block-no-duplicate-properties rule instead.
  • Deprecated: rule-no-shorthand-property-overrides rule. Use the new declaration-block-no-shorthand-property-overrides rule instead.
  • Deprecated: rule-properties-order rule. Use the new declaration-block-properties-order rule instead.
  • Deprecated: rule-trailing-semicolon rule. Use the new declaration-block-trailing-semicolon rule instead.
  • Deprecated true option for emptyLineBefore when using property groups in rule-properties-order. Use the new "always" or "never" option instead.
  • Deprecated: "always" option for font-weight-notation. Use the new always-where-possible option instead.
  • Added: universal severity secondary option as a replacement for "warn": true to alter a rule's severity.
  • Added: block-no-single-line rule.
  • Added: color-named rule.
  • Added: declaration-block-no-duplicate-properties rule.
  • Added: declaration-block-no-shorthand-property-overrides rule.
  • Added: declaration-block-properties-order rule.
  • Added: declaration-block-trailing-semicolon rule.
  • Added: max-nesting-depth rule.
  • Added: no-browser-hacks rule.
  • Added: no-descending-specificity rule.
  • Added: no-indistinguishable-colors rule.
  • Added: no-unsupported-browser-features rule.
  • Added: selector-max-specificity rule.
  • Added: string-no-newline rule.
  • Added: "always" and "never" option to rule-properties-order emptyLineBefore when using property groups
  • Added: named-where-possible option to font-weight-notation.
  • Added: unspecified: "bottomAlphabetical" option to the rule-properties-order rule.
  • Added: ignoreAtRules: [] option to the block-opening-brace-space-before and block-closing-brace-newline-after rules.
  • Added: support for using the nesting selector (&) as a prefix in selector-no-type.
  • Added: stylelint-disable-line feature.
  • Added: withinComments, withinStrings, and checkStrings options to styleSearch, and insideString property to the styleSearch match object.
  • Added: resolveNestedSelectors option to the selector-class-pattern rule.
  • Fixed: informative errors are thrown when stylelint-disable is misused.
  • Fixed: selector-no-vendor-prefix no longer delivers two warnings on vendor-prefixed pseudo-elements with two colons, e.g. ::-moz-placeholder.
  • Fixed: no-duplicate-selectors rule now resolves nested selectors.
  • Fixed: font-weight-notation does not throw false warnings when normal is used in certain ways.
  • Fixed: selector-no-* and selector-*-pattern rules now ignore custom property sets.
  • Fixed: nested selector handling for no-duplicate-selectors.
  • Fixed: selector-no-id does not warn about Sass interpolation inside an :nth-child() argument.
  • Fixed: handling of mixed line endings in rule-nested-empty-line-before, rule-non-nested-empty-line-before, comment-empty-line-before and at-rule-empty-line-before.
  • Fixed: number-leading-zero, function-comma-space-*, and declaration-colon-* do not throw false positives in url() arguments.