chore(style): audit the stylelint config #20945
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 347 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.350
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #20945"
general
weight: 0.35
JacobCoffee
Audits
.stylelintrc.jsonagainststylelint-config-standard-scssand removes overrides that were inert, redundant or hiding fixable issues. Shipped CSS changes only in the box-sizing reset. Each commit passesnpm run stylelinton its own.plugin/selector-bem-patternnever ran: postcss-bem-linter only lints CSS after a/* @define Component /comment or in files matchingimplicitComponents(README), and neither is set. Aselector-class-patternregex now enforces kebab-case BEM with one element and one modifier, the depth sass-lint'sbem-depthallowed in #2294. It also rejectsjs-and-js-classes, following the Airbnb guide's JavaScript hooks rule that frontend.md adopts.stylelint-selector-bem-patternand its transitive packages leave the lock file.no-descending-specificity,scss/no-global-function-names, the Font Awesome family exception made obsolete by #19242, and_reset.scssinignoreFiles. It restores the preset'sfirst-nestedandstylelint-commandshandling oncomment-empty-line-before, which makes one disable comment needless.stylelint --fix(36 stylesheets). rtlcss directives become/ rtl:ignore /.-webkit-/-moz-box-sizing prefixes and lints the reset, emptyingignoreFiles. Unprefixedbox-sizingworks from Chrome 10, Firefox 29, Safari 5.1 and Edge 12 (caniuse), and upstream inuitcss removed the prefixes in 9cc4ed0 in 2016.To verify, I compiled
warehouse.scssandnoscript.scssonmainand after each commit, expanded and compressed, and ran rtlcss onwarehouse.scss. Through c4d084d84 the compressed and RTL output is byte-identical tomain. Againstmain, the final branch differs only in the box-sizing rules: no prefixed declarations,::before/::after, and no banner comment in unminified output. All 586 class names in the compiled CSS pass the new pattern.The pattern checks selectors as written, so a nested
&__elementor&--modifieris not resolved against its parent, and stylelint 17 has no option to do so. Writing those selectors out in full and enablingscss/selector-no-union-class-namewould close the gap. I left that for a follow-up.Refs #12774