Update linters

Autofix some stylelint inssues

Change-Id: I5200899d253724a61bde127ccb00d8c0108af205
This commit is contained in:
Ed Sanders 2023-03-22 18:41:31 +00:00 committed by Bartosz Dziewoński
parent b7c74a34f4
commit d31254005f
5 changed files with 976 additions and 1127 deletions

View file

@ -5,7 +5,7 @@
border-radius: 6px; border-radius: 6px;
margin: -2px; margin: -2px;
&:hover:after { &:hover::after {
content: ' ' attr( title ); content: ' ' attr( title );
} }
} }
@ -63,7 +63,7 @@
pointer-events: all; pointer-events: all;
} }
&:before { &::before {
content: '⚠'; content: '⚠';
color: #000; color: #000;
background: #fff; background: #fff;

View file

@ -30,7 +30,7 @@ h1, h2, h3, h4, h5, h6 {
// Add space before the buttons using actual spaces rather than margin, so that they may collapse // Add space before the buttons using actual spaces rather than margin, so that they may collapse
// when the buttons wrap to a new line (T325416). // when the buttons wrap to a new line (T325416).
// (Except on Minerva, which uses block placements for the buttons rather than inline.) // (Except on Minerva, which uses block placements for the buttons rather than inline.)
body:not( .skin-minerva ) &:before { body:not( .skin-minerva ) &::before {
// Must use character escapes to avoid CSS minifier messing up the spaces // Must use character escapes to avoid CSS minifier messing up the spaces
content: '\20\20'; content: '\20\20';
white-space: pre-wrap; white-space: pre-wrap;

View file

@ -230,11 +230,11 @@
li { li {
display: inline; display: inline;
&:after { &::after {
content: ' • '; content: ' • ';
} }
&:last-child:after { &:last-child::after {
content: ''; content: '';
} }
} }
@ -257,7 +257,7 @@
padding: 0; padding: 0;
} }
&:before { &::before {
content: attr( data-label ); content: attr( data-label );
color: #808080; color: #808080;
} }

2083
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,11 +6,11 @@
"test": "grunt test" "test": "grunt test"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.22.1", "eslint-config-wikimedia": "0.24.0",
"grunt": "1.5.3", "grunt": "1.6.1",
"grunt-banana-checker": "0.10.0", "grunt-banana-checker": "0.10.0",
"grunt-eslint": "24.0.0", "grunt-eslint": "24.0.1",
"grunt-stylelint": "0.18.0", "grunt-stylelint": "0.18.0",
"stylelint-config-wikimedia": "0.13.0" "stylelint-config-wikimedia": "0.14.0"
} }
} }