Skip to content

stylelint 8.0.0

This release is accompanied by:

Changes:

  • Removed: the 21 rules deprecated in 7.8.0 & 7.12.0 (#2422 & #2693).
    • block-no-single-line.
    • custom-property-no-outside-root
    • declaration-block-no-ignored-properties.
    • declaration-block-properties-order.
    • function-url-data-uris.
    • media-feature-no-missing-punctuation.
    • no-browser-hacks.
    • no-indistinguishable-colors.
    • no-unsupported-browser-features.
    • root-no-standard-properties
    • rule-nested-empty-line-before.
    • rule-non-nested-empty-line-before.
    • selector-no-attribute.
    • selector-no-combinator.
    • selector-no-empty.
    • selector-no-id.
    • selector-no-type.
    • selector-no-universal.
    • selector-root-no-composition.
    • stylelint-disable-reason.
    • time-no-imperceptible.
  • Removed: the 4 options deprecated in 7.8.0 (#2433).
    • "all-nested" option for at-rule-empty-line-before.
    • "blockless-group" option for at-rule-empty-line-before.
    • "between-comments" option for comment-empty-line-before.
    • "at-rules-without-declaration-blocks" option for max-nesting-depth.
  • Changed: compatibility with postcss from @5 to @6 (#2561).
  • Changed: parse errors now trigger exit with non-zero code (#2713).
  • Changed: report-needless-disables now exits with non-zero code (#2341).
  • Changed: *-blacklist and *-whitelist (and ignore* [] secondary options) are now case sensitive. Use regular expressions with the i flag for case insensitivity (#2709).
  • Changed: *-empty-line-before now correctly handle shared-line comments (#2262).
  • Changed: *-empty-line-before now consider line as empty if it contains whitespace only (#2440).
  • Changed: function-linear-gradient-no-nonstandard-direction now checks all linear-gradients in a value list (#2496).
  • Changed: selector-max-compound-selectors now checks all resolved selectors, rather than just the deepest (#2350).
  • Added: disableDefaultIgnores option (--disable-default-ignores in CLI), to allow linting of node_modules and bower_components directories (#2464).
  • Added: more efficient file ignoring with .stylelintignore (#2464).
  • Added: ignore: ["child"] option to selector-max-type (#2701).
  • Fixed: declaration-block-no-redundant-longhand-properties and declaration-block-no-shorthand-property-overrides understand more shorthand properties (#2354).
  • Fixed: selector-max-type no longer produces false negatives for when child, next-sibling and following-sibling combinators are used with ignore: ["descendant"] (#2701).