Skip to content

Commit c4c1a4b

Browse files
authored
Update stylelint, enable report* options (#35236)
- Update stylelint - Enable three [`report*` directives](https://stylelint.io/user-guide/configure/#report) - Fix discovered issues
1 parent ef613ee commit c4c1a4b

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"material-icon-theme": "5.24.0",
103103
"nolyfill": "1.0.44",
104104
"postcss-html": "1.8.0",
105-
"stylelint": "16.23.0",
105+
"stylelint": "16.23.1",
106106
"stylelint-config-recommended": "17.0.0",
107107
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
108108
"stylelint-declaration-strict-value": "1.10.11",

stylelint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const cssVarFiles = [
1010

1111
export default defineConfig({
1212
extends: 'stylelint-config-recommended',
13+
reportUnscopedDisables: true,
14+
reportNeedlessDisables: true,
15+
reportInvalidScopeDisables: true,
1316
plugins: [
1417
'stylelint-declaration-strict-value',
1518
'stylelint-declaration-block-no-ignored-properties',

web_src/css/features/colorpicker.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
top: 50%;
1616
transform: translateY(-50%);
1717
border-radius: 2px;
18-
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 */
18+
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);
1919
background-position: 0 0, 4px 4px;
2020
background-size: 8px 8px;
2121
}

web_src/css/repo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ tbody.commit-list {
16721672
.diff-file-header .file-link {
16731673
max-width: fit-content;
16741674
display: -webkit-box;
1675-
-webkit-box-orient: vertical; /* stylelint-disable property-no-deprecated -- https://github.com/stylelint/stylelint/issues/8698 */
1675+
-webkit-box-orient: vertical;
16761676
-webkit-line-clamp: 2;
16771677
overflow: hidden;
16781678
overflow-wrap: anywhere;

0 commit comments

Comments
 (0)