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@stylistic/stylelint-plugin 614 changes
Breaking changes 8
With
neverandexcept: ["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.Core rules now read plain CSS alone; SCSS, Less, and styled templates require rules under the matching syntax namespace.
The rule now checks declarations in inline style attributes.
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.
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.
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.
The plugin now requires stylelint version 18.0.0 or higher.
Rules for SCSS must use the syntax namespace in the overrides block that sets customSyntax; core rule names now read plain CSS only.
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.
Tooling 1
The package now ships a type declaration so TypeScript configurations and importing scripts see the plugin list as Plugin[] rather than any.
Fixes and other changes 4
The rule now checks whitespace after the colon when a custom property value contains a comment.
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.
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.
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.
@stylistic/stylelint-plugin 517 changes
Breaking changes 2
The plugin now requires node.js version 20.19.0 or higher.
The plugin now requires stylelint version 17.0.0 or higher.
New APIs and options 5
Adds the ignoreFunctions option to the rule.
Adds the ignoreFunctions option to the rule.
Adds the ignoreFunctions option to the rule.
Adds the ignoreFunctions option to the rule.
Adds a rule that disallows multiple whitespaces between property values and function arguments.
Behavior and default changes 1
The rule is now autofixable.
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.
When fixing, the rule no longer removes a comment between the selector and the opening brace.
When fixing, the rule no longer damages a declaration whose multi-line value contains comments.
The rule no longer raises an entire selector list by a level when one selector is a multi-line pseudo-class.
When fixing, the rule trims every line of a comment rather than stopping at its first quotation mark.
The rule no longer reports a combinator opening a selector when a comment precedes it.
The rule no longer loses its bearings in declaration values or at-rule parameters that contain a comment.
Empty custom property values using
--custom-prop: ;or--custom-prop:;are now considered valid.The rule no longer triggers false positives in multiline pseudo-classes.
@stylistic/stylelint-plugin 42 changes
Breaking changes 1
The plugin now requires Stylelint version 16.22.0 or higher.
Fixes and other changes 1
Multiline pseudos are now aligned correctly when using the indentation rule.
@stylistic/stylelint-plugin 31 changes
Breaking changes 1
The plugin now requires stylelint version 16.8.0 or higher.