Update stylelint, enable report* options (#35236)

- Update stylelint
- Enable three [`report*`
directives](https://stylelint.io/user-guide/configure/#report)
- Fix discovered issues
This commit is contained in:
silverwind 2025-08-08 18:52:49 +02:00 committed by GitHub
parent ef613ee760
commit c4c1a4bd18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 7 deletions

8
package-lock.json generated
View File

@ -103,7 +103,7 @@
"material-icon-theme": "5.24.0",
"nolyfill": "1.0.44",
"postcss-html": "1.8.0",
"stylelint": "16.23.0",
"stylelint": "16.23.1",
"stylelint-config-recommended": "17.0.0",
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
"stylelint-declaration-strict-value": "1.10.11",
@ -12263,9 +12263,9 @@
"license": "ISC"
},
"node_modules/stylelint": {
"version": "16.23.0",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.23.0.tgz",
"integrity": "sha512-69T5aS2LUY306ekt1Q1oaSPwz/jaG9HjyMix3UMrai1iEbuOafBe2Dh8xlyczrxFAy89qcKyZWWtc42XLx3Bbw==",
"version": "16.23.1",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.23.1.tgz",
"integrity": "sha512-dNvDTsKV1U2YtiUDfe9d2gp902veFeo3ecCWdGlmLm2WFrAV0+L5LoOj/qHSBABQwMsZPJwfC4bf39mQm1S5zw==",
"dev": true,
"funding": [
{

View File

@ -102,7 +102,7 @@
"material-icon-theme": "5.24.0",
"nolyfill": "1.0.44",
"postcss-html": "1.8.0",
"stylelint": "16.23.0",
"stylelint": "16.23.1",
"stylelint-config-recommended": "17.0.0",
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
"stylelint-declaration-strict-value": "1.10.11",

View File

@ -10,6 +10,9 @@ const cssVarFiles = [
export default defineConfig({
extends: 'stylelint-config-recommended',
reportUnscopedDisables: true,
reportNeedlessDisables: true,
reportInvalidScopeDisables: true,
plugins: [
'stylelint-declaration-strict-value',
'stylelint-declaration-block-no-ignored-properties',

View File

@ -15,7 +15,7 @@
top: 50%;
transform: translateY(-50%);
border-radius: 2px;
background: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa); /* stylelint-disable-line scale-unlimited/declaration-strict-value */
background: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
background-position: 0 0, 4px 4px;
background-size: 8px 8px;
}

View File

@ -1672,7 +1672,7 @@ tbody.commit-list {
.diff-file-header .file-link {
max-width: fit-content;
display: -webkit-box;
-webkit-box-orient: vertical; /* stylelint-disable property-no-deprecated -- https://github.com/stylelint/stylelint/issues/8698 */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
overflow-wrap: anywhere;