Full list of changes can be viewed here
Changed
- Bumped stylelint from 17.1.0 to 18.0.0
- Bumped @stylistic/stylelint-plugin from 5.0.1 to 6.0.1
- Bumped stylelint-scss from 7.0.0 to 7.5.0
- Switched all stylistic rules from
@stylistic/*to the SCSS-aware@stylistic/scss/*variants provided by @stylistic/stylelint-plugin v6. If you override any of these rules in your own config, update the rule names (e.g.@stylistic/indentation→@stylistic/scss/indentation); otherwise your override will enable a second rule instead of replacing this config's setting.@stylistic/scss/block-opening-brace-space-before@stylistic/scss/color-hex-case@stylistic/scss/declaration-bang-space-after@stylistic/scss/declaration-bang-space-before@stylistic/scss/declaration-block-semicolon-newline-after@stylistic/scss/declaration-block-semicolon-space-before@stylistic/scss/declaration-block-trailing-semicolon@stylistic/scss/declaration-colon-space-after@stylistic/scss/declaration-colon-space-before@stylistic/scss/function-comma-space-after@stylistic/scss/function-parentheses-space-inside@stylistic/scss/indentation@stylistic/scss/media-feature-parentheses-space-inside@stylistic/scss/no-missing-end-of-source-newline@stylistic/scss/number-leading-zero@stylistic/scss/number-no-trailing-zeros@stylistic/scss/selector-list-comma-newline-after@stylistic/scss/string-quotes
- Replaced
declaration-block-single-line-max-declarations(removed from stylelint core in v18) with@stylistic/scss/declaration-block-single-line-max-declarations. The setting is unchanged (1). - Updated tests for the reworded lint messages in stylelint 18 (e.g.
Unexpected empty block→Empty block). Lint behavior is unchanged. - Updated README rule list with the new rule names and links to the stylelint-stylistic docs.