Skip to content

Commit 20550bb

Browse files
authored
Upgrading to stylelint-config-12.4.0 (#2041)
* Upgrading to stylelint-config-12.4.0 * Create tame-clouds-shop.md
1 parent 4416331 commit 20550bb

File tree

13 files changed

+50
-16
lines changed

13 files changed

+50
-16
lines changed

.changeset/tame-clouds-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Upgrading to stylelint-config-12.4.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@changesets/cli": "2.22.0",
4949
"@github/prettier-config": "0.0.4",
5050
"@koddsson/postcss-sass": "5.0.1",
51-
"@primer/stylelint-config": "^12.3.3",
51+
"@primer/stylelint-config": "^12.4.0",
5252
"autoprefixer": "10.4.4",
5353
"chokidar-cli": "3.0.0",
5454
"cssstats": "4.0.5",

src/box/box-overlay.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.Box--overlay {
2+
// stylelint-disable-next-line primer/responsive-widths
23
width: 448px;
34
margin-right: auto;
45
margin-left: auto;
@@ -22,6 +23,7 @@
2223
}
2324

2425
.Box-overlay--wide {
26+
// stylelint-disable-next-line primer/responsive-widths
2527
width: 640px;
2628
}
2729

src/forms/form-group.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
// Text fields
2525
.form-control {
26+
// stylelint-disable-next-line primer/responsive-widths
2627
width: 440px;
2728
max-width: 100%;
2829
// stylelint-disable-next-line primer/spacing

src/marketing/type/typography.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,25 @@
1515

1616
@each $header, $sizes in $mktg-headers {
1717
.h#{$header}-mktg {
18+
// stylelint-disable-next-line function-no-unknown
1819
$pairing: map-get($mktg-header-pairings, nth($sizes, 1));
20+
// stylelint-disable-next-line function-no-unknown
1921
$pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
22+
// stylelint-disable-next-line function-no-unknown
2023
$pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
2124

25+
// stylelint-disable-next-line function-no-unknown
2226
font-size: map-get($pairing, 'size') !important;
27+
// stylelint-disable-next-line function-no-unknown
2328
line-height: map-get($pairing, 'lh') !important;
2429

2530
@if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
2631

2732
@if (nth($sizes, 1) != nth($sizes, 2)) {
2833
@include breakpoint(md) {
34+
// stylelint-disable-next-line function-no-unknown
2935
font-size: map-get($pairing-md, 'size') !important;
36+
// stylelint-disable-next-line function-no-unknown
3037
line-height: map-get($pairing-md, 'lh') !important;
3138

3239
@if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
@@ -41,7 +48,9 @@
4148

4249
@if (nth($sizes, 2) != nth($sizes, 3)) {
4350
@include breakpoint(lg) {
51+
// stylelint-disable-next-line function-no-unknown
4452
font-size: map-get($pairing-lg, 'size') !important;
53+
// stylelint-disable-next-line function-no-unknown
4554
line-height: map-get($pairing-lg, 'lh') !important;
4655

4756
@if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
@@ -70,11 +79,16 @@
7079

7180
@each $body, $sizes in $mktg-bodies {
7281
.f#{$body}-mktg {
82+
// stylelint-disable-next-line function-no-unknown
7383
$pairing: map-get($mktg-body-pairings, nth($sizes, 1));
84+
// stylelint-disable-next-line function-no-unknown
7485
$pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
86+
// stylelint-disable-next-line function-no-unknown
7587
$pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
7688

89+
// stylelint-disable-next-line function-no-unknown
7790
font-size: map-get($pairing, 'size') !important;
91+
// stylelint-disable-next-line function-no-unknown
7892
line-height: map-get($pairing, 'lh') !important;
7993

8094
@if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
@@ -83,7 +97,9 @@
8397

8498
@if (nth($sizes, 1) != nth($sizes, 2)) {
8599
@include breakpoint(md) {
100+
// stylelint-disable-next-line function-no-unknown
86101
font-size: map-get($pairing-md, 'size') !important;
102+
// stylelint-disable-next-line function-no-unknown
87103
line-height: map-get($pairing-md, 'lh') !important;
88104

89105
@if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
@@ -98,7 +114,9 @@
98114

99115
@if (nth($sizes, 2) != nth($sizes, 3)) {
100116
@include breakpoint(lg) {
117+
// stylelint-disable-next-line function-no-unknown
101118
font-size: map-get($pairing-lg, 'size') !important;
119+
// stylelint-disable-next-line function-no-unknown
102120
line-height: map-get($pairing-lg, 'lh') !important;
103121

104122
@if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {

src/marketing/utilities/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@each $breakpoint, $variant in $responsive-variants {
2828
@include breakpoint($breakpoint) {
2929
@for $offset from 1 through 7 {
30-
// stylelint-disable-next-line primer/spacing
30+
// stylelint-disable-next-line primer/spacing, function-no-unknown
3131
.offset#{$variant}-n#{$offset} { margin-left: -($offset * 0.0833333333 * 100%); }
3232
}
3333
}

src/navigation/subnav.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191

9292
.subnav-search-input-wide {
93+
// stylelint-disable-next-line primer/responsive-widths
9394
width: 500px;
9495
}
9596

src/popover/popover.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
}
123123

124124
&::before {
125+
// stylelint-disable-next-line function-no-unknown
125126
margin-top: -($spacer-2 + 1);
126127
}
127128

src/support/mixins/color-modes.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@
8484
@each $name, $value in $color-map {
8585
@each $type, $color in $value {
8686
@if $type == dark {
87+
// stylelint-disable-next-line function-no-unknown
8788
$dark-colors: append($dark-colors, (--color-#{$name}, #{$color}));
8889
}
8990

9091
@else {
92+
// stylelint-disable-next-line function-no-unknown
9193
$light-colors: append($light-colors, (--color-#{$name}, #{$color}));
9294
}
9395
}

src/support/mixins/layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
@else {
99
// Retrieves the value from the key
10+
// stylelint-disable-next-line function-no-unknown
1011
$value: map-get($breakpoints, $breakpoint);
1112

1213
// If the key exists in the map

0 commit comments

Comments
 (0)