Skip to content

Commit 72fcf53

Browse files
authored
Bump primer/stylelint-config (#7160)
1 parent 2cfb4ae commit 72fcf53

File tree

10 files changed

+48
-41
lines changed

10 files changed

+48
-41
lines changed

package-lock.json

Lines changed: 27 additions & 21 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
@@ -56,7 +56,7 @@
5656
"@mdx-js/react": "1.6.22",
5757
"@playwright/test": "^1.55.0",
5858
"@prettier/sync": "0.5.5",
59-
"@primer/stylelint-config": "13.3.0",
59+
"@primer/stylelint-config": "13.4.1",
6060
"@size-limit/preset-big-lib": "11.2.0",
6161
"@types/semver": "^7.7.1",
6262
"@vitest/browser": "^4.0.3",

packages/react/src/AvatarStack/AvatarStack.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444

4545
&:where([data-avatar-count='1'][data-shape='square']) .AvatarItem {
4646
/* stylelint-disable-next-line primer/box-shadow */
47-
box-shadow: 1px 0 rgba(0, 0, 0, 1);
47+
box-shadow: 1px 0 rgb(0, 0, 0, 1);
4848
}
4949

5050
&:where([data-avatar-count='1'][data-shape='square'][data-align-right]) .AvatarItem {
5151
/* stylelint-disable-next-line primer/box-shadow */
52-
box-shadow: -1px 0 rgba(0, 0, 0, 1);
52+
box-shadow: -1px 0 rgb(0, 0, 0, 1);
5353
}
5454

5555
&:where([data-avatar-count='2']) {
@@ -145,12 +145,12 @@
145145

146146
.AvatarStack:where([data-shape='square']) &:is(img) {
147147
/* stylelint-disable-next-line primer/box-shadow */
148-
box-shadow: 1px 0 rgba(255, 255, 255, 1);
148+
box-shadow: 1px 0 rgb(255, 255, 255, 1);
149149
}
150150

151151
.AvatarStack:where([data-shape='square'][data-align-right]) &:is(img) {
152152
/* stylelint-disable-next-line primer/box-shadow */
153-
box-shadow: -1px 0 rgba(255, 255, 255, 1);
153+
box-shadow: -1px 0 rgb(255, 255, 255, 1);
154154
}
155155

156156
&:first-child {
@@ -184,13 +184,13 @@
184184
/* Circular mask */
185185
.AvatarStack:where([data-shape='circle']) &:nth-child(n + 2) {
186186
/* stylelint-disable-next-line declaration-property-value-no-unknown */
187-
mask-image: radial-gradient(at 50% 50%, rgb(0, 0, 0) 70%, rgba(0, 0, 0, 0) 71%), linear-gradient(rgb(0, 0, 0) 0 0);
187+
mask-image: radial-gradient(at 50% 50%, rgb(0, 0, 0) 70%, rgb(0, 0, 0, 0) 71%), linear-gradient(rgb(0, 0, 0) 0 0);
188188
}
189189

190190
/* Square mask */
191191
.AvatarStack:where([data-shape='square']) &:nth-child(n + 2) {
192192
/* stylelint-disable-next-line declaration-property-value-no-unknown */
193-
mask-image: linear-gradient(at 50% 50%, rgb(0, 0, 0) 70%, rgba(0, 0, 0, 0) 71%), linear-gradient(rgb(0, 0, 0) 0 0);
193+
mask-image: linear-gradient(at 50% 50%, rgb(0, 0, 0) 70%, rgb(0, 0, 0, 0) 71%), linear-gradient(rgb(0, 0, 0) 0 0);
194194
}
195195

196196
/* Cascade variant override for nth-child(n + 3) */

packages/react/src/ProgressBar/ProgressBar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@media (prefers-reduced-motion: no-preference) {
2121
&[data-animated='true'] {
22-
mask-image: linear-gradient(75deg, #000 30%, rgba(0, 0, 0, 0.65) 80%);
22+
mask-image: linear-gradient(75deg, #000 30%, rgb(0, 0, 0, 0.65) 80%);
2323
mask-size: 200%;
2424
animation-name: shimmer;
2525
animation-duration: 1s;

packages/react/src/Skeleton/SkeletonBox.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
animation: shimmer;
1717

1818
@media (prefers-reduced-motion: no-preference) {
19-
mask-image: linear-gradient(75deg, #000 30%, rgba(0, 0, 0, 0.65) 80%);
19+
mask-image: linear-gradient(75deg, #000 30%, rgb(0, 0, 0, 0.65) 80%);
2020
mask-size: 200%;
2121
animation: shimmer;
2222
animation-duration: var(--base-duration-1000);

packages/react/src/ToggleSwitch/ToggleSwitch.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@
136136
.SwitchButton:where([data-checked='false']:not([data-disabled='true']):hover),
137137
.SwitchButton:where([data-checked='false']:not([data-disabled='true']):focus-visible) {
138138
/* stylelint-disable-next-line primer/colors */
139-
background-color: var(--controlTrack-bgColor-hover, var(--color-switch-track-hover-bg, hsla(210deg, 24%, 90%, 1)));
139+
background-color: var(--controlTrack-bgColor-hover, var(--color-switch-track-hover-bg, hsl(210deg, 24%, 90%, 1)));
140140
}
141141

142142
.SwitchButton:where([data-checked='false']:not([data-disabled='true']):active),
143143
.SwitchButton:where([data-checked='false']:not([data-disabled='true']):active:focus-visible) {
144144
/* stylelint-disable-next-line primer/colors */
145-
background-color: var(--controlTrack-bgColor-active, var(--color-switch-track-active-bg, hsla(210deg, 24%, 88%, 1)));
145+
background-color: var(--controlTrack-bgColor-active, var(--color-switch-track-active-bg, hsl(210deg, 24%, 88%, 1)));
146146
}
147147

148148
.SwitchButton:where([data-checked='true']:not([data-disabled='true'])) {

packages/react/src/Token/IssueLabelToken.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
background: rgb(var(--label-r), var(--label-g), var(--label-b));
88
color: hsl(0deg, 0%, calc(var(--lightness-switch) * 100%));
9-
border-color: hsla(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 25) * 1%), var(--border-alpha));
9+
border-color: hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 25) * 1%), var(--border-alpha));
1010

1111
/* Selected state */
1212
&:where([data-selected='true']) {
@@ -20,7 +20,7 @@
2020

2121
/* Interactive hover states */
2222
&:where([data-cursor-is-interactive='true']:hover) {
23-
background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
23+
background-image: linear-gradient(rgb(0, 0, 0, 0.15), rgb(0, 0, 0, 0.15)),
2424
linear-gradient(
2525
rgb(var(--label-r), var(--label-g), var(--label-b)),
2626
rgb(var(--label-r), var(--label-g), var(--label-b))
@@ -35,9 +35,9 @@
3535
--border-alpha: 0.3;
3636
--lighten-by: calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch));
3737

38-
background: rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha));
38+
background: rgb(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha));
3939
color: hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%));
40-
border-color: hsla(
40+
border-color: hsl(
4141
var(--label-h),
4242
calc(var(--label-s) * 1%),
4343
calc((var(--label-l) + var(--lighten-by)) * 1%),
@@ -53,7 +53,7 @@
5353

5454
/* Interactive hover states */
5555
&:where([data-cursor-is-interactive='true']:hover) {
56-
background: hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);
56+
background: hsl(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);
5757
box-shadow: var(--shadow-resting-medium);
5858
}
5959
}

packages/react/src/stories/deprecated/ActionListStories.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
border-radius: var(--borderRadius-large);
33
/* stylelint-disable primer/box-shadow */
44
box-shadow:
5-
0 1px 3px rgba(0, 0, 0, 0.12),
6-
0 8px 24px rgba(149, 157, 165, 0.2);
5+
0 1px 3px rgb(0, 0, 0, 0.12),
6+
0 8px 24px rgb(149, 157, 165, 0.2);
77
/* stylelint-enable primer/box-shadow */
88
overflow: hidden;
99
}

packages/react/src/stories/deprecated/ActionMenuStories.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.ErsatzOverlay {
33
border-radius: var(--borderRadius-large);
44
box-shadow:
5-
0 1px 3px rgba(0, 0, 0, 0.12),
6-
0 8px 24px rgba(149, 157, 165, 0.2);
5+
0 1px 3px rgb(0, 0, 0, 0.12),
6+
0 8px 24px rgb(149, 157, 165, 0.2);
77
padding: var(--base-size-8);
88
}

stylelint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
message: '"%s" selector should be written in PascalCase or BEM format (e.g. block__element--modifier)',
1414
},
1515
],
16+
'layer-name-pattern': '^[a-z][a-zA-Z0-9.-]*$',
1617
},
1718
overrides: [
1819
{

0 commit comments

Comments
 (0)