Page MenuHomePhabricator

stylelint breaks and rearranges lines, hence fails, -> LibUp failing
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Check out the GrowthExperiments repository
  • Run npm add --save-dev stylelint-config-wikimedia@0.18.0 to update the stylelint config
  • Run npm t to run all the tests

What happens?:

modules/ext.growthExperiments.Homepage.styles/SuggestedEditsModule.less
   99:25  ✖  Needless disable for "declaration-no-important"  --report-needless-disables
  102:3   ✖  Unexpected !important                            declaration-no-important
  341:26  ✖  Needless disable for "declaration-no-important"  --report-needless-disables
  342:11  ✖  Unexpected !important                            declaration-no-important

✖ 4 problems (4 errors, 0 warnings)

What should have happened instead?:
Stylelint should have finished without errors

Other information:

The first location in question:

097 .mw-mf-page-center__mask.suggested-edits {
098 	// Set value to be higher than Minerva's overlay content (@z-indexOverlay: 3).
099 	z-index: 4 !important; // stylelint-disable-line declaration-no-important
100 }
101
102 .drawer.suggested-edits-taskexplanation-drawer {
103 	h4 {

This seems to be among the issues that cause LibUp to fail for GrowthExperiments.

I created wikimedia/stylelint-config-wikimedia#254 to track this upstream as well.

Event Timeline

Michael renamed this task from stylelint breaks and rearranges lines and thus confuses itself to stylelint breaks and rearranges lines, hence fails, -> LibUp failing.Mar 13 2025, 11:02 AM

Change #1133843 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] chore: update stylelint and disable broken rule

https://gerrit.wikimedia.org/r/1133843

Change #1133843 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] chore: update stylelint and disable broken rule

https://gerrit.wikimedia.org/r/1133843