Skip to content

fix(scss): modernize legacy Sass APIs and restore strict stylelint rules - #3115

Open
b-l-i-n-d wants to merge 2 commits into
feat/stylelint-repo-widefrom
feat/fix-sass-deprecations
Open

b-l-i-n-d wants to merge 2 commits into
feat/stylelint-repo-widefrom
feat/fix-sass-deprecations

Conversation

@b-l-i-n-d

Copy link
Copy Markdown
Collaborator

Stacked on top of #3114.

Summary

  • Modernizes legacy Sass APIs across codebase:
    • Math functions to sass:math (abs, unit, compatible, percentage).
    • List and meta functions to sass:list and sass:meta.
    • String functions to sass:string.
    • Color functions (darken, lighten) to sass:color (adjust, mix, channel, change).
  • Restores strict Stylelint rules without overrides:
    • Eliminates overrides for scss/at-mixin-argumentless-call-parentheses and selector-not-notation.
    • Formats all argumentless mixins and complex :not() pseudo-classes to meet strict standards.
  • Removes silenceDeprecations from rspack.config.mjs.

- Modernize math functions (abs, unit, comparable) to sass:math (abs, unit, compatible, percentage)
- Modernize list and meta builtins to sass:list (length, nth, index, append, zip) and sass:meta (type-of, variable-exists)
- Modernize string functions to sass:string (slice, index, length, unquote)
- Replace legacy color functions (darken, lighten) with sass:color (adjust, mix, channel, change)
- Retain only 'import' in rspack silenceDeprecations, eliminating abs-percent, color-functions, global-builtin, and legacy-js-api
…es and remove import silencing

- Remove 'scss/at-mixin-argumentless-call-parentheses: null' and 'selector-not-notation: null' overrides in stylelint.config.mjs
- Update mixin calls and complex :not() pseudo-class selectors across core and frontend SCSS
- Remove silenceDeprecations: ['import'] from rspack.config.mjs
@b-l-i-n-d
b-l-i-n-d added this pull request to stack #3116 October 23, 2026 05:38
@b-l-i-n-d b-l-i-n-d self-assigned this Oct 23, 2026
@b-l-i-n-d b-l-i-n-d added enhancement New feature or request QoL Quality of Life future labels Oct 23, 2026
@b-l-i-n-d
b-l-i-n-d marked this pull request as draft October 23, 2026 05:39
@b-l-i-n-d
b-l-i-n-d marked this pull request as ready for review October 23, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request future QoL Quality of Life

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant