Skip to content

Commit 11d388c

Browse files
committed
Upgrade stylelint to 14
1 parent 91579a5 commit 11d388c

10 files changed

+78
-439
lines changed

ui/frontend/.stylelintrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"stylelint-config-prettier"
77
],
88
"rules": {
9+
"selector-class-pattern": [
10+
"^[a-z-][a-zA-Z0-9]+$", {
11+
"message": "Expected class selector to be lowerCamelCase"
12+
}],
913
"value-keyword-case": ["lower", {
1014
"ignoreProperties": [
1115
"composes"

ui/frontend/ConfigElement.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
&:hover {
51-
background: hsla(208, 100%, 43%, 0.1);
51+
background: hsl(208deg 100% 43% / 10%);
5252
}
5353
}
5454

ui/frontend/HelpExample.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
top: 0;
88
right: 0;
99
border: none;
10-
background: rgba(255, 255, 255, 0.8);
10+
background: rgb(255 255 255 / 80%);
1111
border-bottom-left-radius: 0.5em;
1212
cursor: pointer;
1313
opacity: 0;

ui/frontend/MenuAside.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.aside {
2-
margin: 0.25em 0 0 0;
2+
margin: 0.25em 0 0;
33
color: #888;
44
}

ui/frontend/MenuGroup.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.container {
22
width: 27em;
3-
padding: 0.75em 1em 0 1em;
3+
padding: 0.75em 1em 0;
44
line-height: normal;
55

66
&:last-child {

ui/frontend/PopButton.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ $vertical-border-color: #cacaca;
3535
margin: $arrow-size;
3636
background: $bg-color;
3737
border-radius: var(--header-border-radius);
38-
box-shadow: 0 1px 4px -2px rgba(0, 0, 0, 0.6), inset 0 1px 0 white;
38+
box-shadow: 0 1px 4px -2px rgb(0 0 0 / 60%), inset 0 1px 0 white;
3939
color: $fg-color;
4040
}

ui/frontend/SegmentedButton.module.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $bg-dark: #f9f9f9;
55
display: flex;
66
align-items: center;
77
border-radius: var(--header-border-radius);
8-
box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 white;
8+
box-shadow: 0 2px 4px -2px rgb(0 0 0 / 40%), inset 0 1px 0 white;
99
}
1010

1111
.button {
@@ -42,13 +42,13 @@ $bg-dark: #f9f9f9;
4242
border-top-color: #bababa;
4343
border-bottom-color: #d6d6d6;
4444
background: linear-gradient($bg-dark, #ededed);
45-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
45+
box-shadow: inset 0 1px 1px rgb(0 0 0 / 20%);
4646
}
4747
}
4848

4949
.buttonBuild {
5050
composes: button;
51-
border-color: hsl(15, 66.7%, 32%);
51+
border-color: hsl(15deg 66.7% 32%);
5252
background: var(--rust);
5353
color: white;
5454

ui/frontend/index.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ body {
3636
font-family: var(--primary-font);
3737
}
3838

39+
/* stylelint-disable-next-line selector-class-pattern */
3940
:global(.language-rust_errors) {
4041
& :global(.warning) {
4142
color: #f79a06;

ui/frontend/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
"postcss-nesting": "^10.1.1",
6868
"postcss-simple-vars": "^6.0.3",
6969
"prettier": "^2.2.1",
70-
"stylelint": "^13.12.0",
70+
"stylelint": "^14.2.0",
7171
"stylelint-config-css-modules": "^2.2.0",
7272
"stylelint-config-idiomatic-order": "^8.1.0",
7373
"stylelint-config-prettier": "^9.0.3",
74-
"stylelint-config-standard": "^22.0.0",
74+
"stylelint-config-standard": "^24.0.0",
7575
"ts-essentials": "^9.0.0",
7676
"ts-jest": "^27.0.0",
7777
"ts-loader": "^9.2.3",

0 commit comments

Comments
 (0)