unstale

npm / @stylistic/stylelint-plugin

@stylistic/stylelint-plugin

What changed in @stylistic/stylelint-plugin 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

12 breaking6 new APIs and options1 behavior and defaults1 tooling14 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@stylistic/stylelint-plugin 614 changes

Breaking changes 8

  • With never and except: ["after-closing-brace"], now requires an empty line before a block’s closing brace when the block ends with a nested block, even if it contains an earlier declaration.

    6.0.1release notes

  • Core rules now read plain CSS alone; SCSS, Less, and styled templates require rules under the matching syntax namespace.

    6.0.0release notes

  • The rule now checks declarations in inline style attributes.

    6.0.0release notes

  • Listing the package in extends instead of plugins now stops with a configuration error naming the preset to extend or field to move the package to.

    6.0.0release notes

  • Fix results no longer depend on rule order; rules consider other rules' settings and writes in the same text, and some files may receive new autocorrections.

    6.0.0release notes

  • Line breaks are now read as line feeds, including the LF in a Windows pair; bare carriage returns and form feeds are whitespace, and linebreaks still distinguishes LF from CRLF.

    6.0.0release notes

  • The plugin now requires stylelint version 18.0.0 or higher.

    6.0.0release notes

  • Rules for SCSS must use the syntax namespace in the overrides block that sets customSyntax; core rule names now read plain CSS only.

    6.0.0release notes

New APIs and options 1

  • The rule table used to build the recommended preset is exported for projecting under another namespace or changing settings across names.

    6.0.0release notes

Tooling 1

  • The package now ships a type declaration so TypeScript configurations and importing scripts see the plugin list as Plugin[] rather than any.

    6.0.0release notes

Fixes and other changes 4

  • The rule now checks whitespace after the colon when a custom property value contains a comment.

    6.0.0release notes

  • When a rule is listed under both core and namespace names for one stylesheet, only the stylesheet family's copy reads it; other copies yield.

    6.0.0release notes

  • The rule now reports every mis-indented line of at-rule parameters containing comments at the spelled line and column, and corrects every mis-indented at-rule line.

    6.0.0release notes

  • The rule now counts empty lines inside Sass nested properties with values and reports warnings at the positions spelled in the file around specified constructs.

    6.0.0release notes

@stylistic/stylelint-plugin 517 changes

Breaking changes 2

  • The plugin now requires node.js version 20.19.0 or higher.

    5.0.0release notes

  • The plugin now requires stylelint version 17.0.0 or higher.

    5.0.0release notes

New APIs and options 5

  • Adds the ignoreFunctions option to the rule.

    5.3.0release notes

  • Adds the ignoreFunctions option to the rule.

    5.3.0release notes

  • Adds the ignoreFunctions option to the rule.

    5.3.0release notes

  • Adds the ignoreFunctions option to the rule.

    5.3.0release notes

  • Adds a rule that disallows multiple whitespaces between property values and function arguments.

    5.1.0release notes

Behavior and default changes 1

Fixes and other changes 9

  • The rule no longer reports an at-rule whose semicolon is followed by a comment on its own line, or breaks that comment's line when fixing.

    5.3.1release notes

  • When fixing, the rule no longer removes a comment between the selector and the opening brace.

    5.3.1release notes

  • When fixing, the rule no longer damages a declaration whose multi-line value contains comments.

    5.3.1release notes

  • The rule no longer raises an entire selector list by a level when one selector is a multi-line pseudo-class.

    5.3.1release notes

  • When fixing, the rule trims every line of a comment rather than stopping at its first quotation mark.

    5.3.1release notes

  • The rule no longer reports a combinator opening a selector when a comment precedes it.

    5.3.1release notes

  • The rule no longer loses its bearings in declaration values or at-rule parameters that contain a comment.

    5.3.1release notes

  • Empty custom property values using --custom-prop: ; or --custom-prop:; are now considered valid.

    5.2.0release notes

  • The rule no longer triggers false positives in multiline pseudo-classes.

    5.0.1release notes

@stylistic/stylelint-plugin 42 changes

Breaking changes 1

  • The plugin now requires Stylelint version 16.22.0 or higher.

    4.0.0release notes

Fixes and other changes 1

  • Multiline pseudos are now aligned correctly when using the indentation rule.

    4.0.1release notes

@stylistic/stylelint-plugin 31 changes

Breaking changes 1

  • The plugin now requires stylelint version 16.8.0 or higher.

    3.0.0release notes