Skip to content

Commit f02d9a3

Browse files
jonrohansimurai
andauthored
Upgrading @primer/stylelint-config@12.3.0 (#1906)
* Upgrading @primer/stylelint-config@12.3.0 * Fixing issues and removing needless disables * Create gentle-lizards-switch.md Co-authored-by: simurai <simurai@github.com>
1 parent a044321 commit f02d9a3

File tree

23 files changed

+31
-32
lines changed

23 files changed

+31
-32
lines changed
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 @primer/stylelint-config@12.3.0 and fixing violations

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@changesets/cli": "2.20.0",
4444
"@github/prettier-config": "0.0.4",
4545
"@koddsson/postcss-sass": "5.0.1",
46-
"@primer/stylelint-config": "12.2.0",
46+
"@primer/stylelint-config": "^12.3.0",
4747
"autoprefixer": "10.4.2",
4848
"chokidar-cli": "3.0.0",
4949
"cssstats": "4.0.2",

src/actionlist/action-list-item-divider.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// has children
55
&:not(:empty) {
66
display: flex;
7-
// stylelint-disable-next-line primer/spacing
87
padding: ($spacer-1 * 1.5) $spacer-2;
98
font-size: $font-size-small;
109
font-weight: $font-weight-bold;
@@ -16,7 +15,6 @@
1615
&:empty {
1716
height: 1px;
1817
padding: 0;
19-
// stylelint-disable-next-line primer/spacing
2018
margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
2119
list-style: none;
2220
background: var(--color-action-list-item-inline-divider);

src/actionlist/action-list-item.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@
389389

390390
// if nested list exists, remove default padding
391391
.ActionList {
392-
// stylelint-disable-next-line primer/spacing
393392
padding: unset;
394393
}
395394
}
@@ -398,7 +397,6 @@
398397
.ActionList-content {
399398
position: relative;
400399
display: grid;
401-
// stylelint-disable-next-line primer/spacing
402400
padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
403401
font-size: $body-font-size;
404402
font-weight: $font-weight-normal;
@@ -425,13 +423,11 @@
425423

426424
&.ActionList-content--sizeMedium {
427425
// 44px total height
428-
// stylelint-disable-next-line primer/spacing
429426
padding: $actionList-item-padding-vertical-md $actionList-item-padding-horizontal;
430427
}
431428

432429
&.ActionList-content--sizeLarge {
433430
// 48px total height
434-
// stylelint-disable-next-line primer/spacing
435431
padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
436432
}
437433

@@ -441,7 +437,6 @@
441437

442438
// On pointer:coarse (mobile), all list items are large
443439
@media (pointer: coarse) {
444-
// stylelint-disable-next-line primer/spacing
445440
padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
446441
}
447442

@@ -498,7 +493,6 @@
498493
align-items: baseline;
499494

500495
.ActionList-item-description {
501-
// stylelint-disable-next-line primer/spacing
502496
margin-left: $actionList-item-padding-horizontal;
503497
}
504498
}

src/actionlist/action-list-tree.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
3131
// stylelint-disable-next-line selector-max-specificity, max-nesting-depth, selector-max-compound-selectors
3232
.ActionList-content {
33-
// stylelint-disable-next-line primer/spacing
3433
padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
3534
}
3635
}

src/base/kbd.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
kbd {
55
display: inline-block;
6-
// stylelint-disable-next-line primer/spacing
76
padding: ($spacer-1 - 1) ($spacer-1 + 1);
87
font: 11px $mono-font;
98
// stylelint-disable-next-line primer/typography

src/blankslate/blankslate.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
}
5656

5757
.blankslate-spacious {
58-
// stylelint-disable-next-line primer/spacing
5958
padding: ($spacer-6 * 2) $spacer-6;
6059
}
6160

src/box/box.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
.Box-btn-octicon {
2929
&.btn-octicon {
3030
padding: $spacer-2 $spacer-3;
31-
// stylelint-disable-next-line primer/spacing
3231
margin: (-$spacer-2) (-$spacer-3);
3332
line-height: $lh-condensed;
3433
}
@@ -60,7 +59,6 @@
6059
.Box-btn-octicon {
6160
&.btn-octicon {
6261
padding: $spacer-4;
63-
// stylelint-disable-next-line primer/spacing
6462
margin: (-$spacer-4) (-$spacer-4);
6563
}
6664
}
@@ -285,7 +283,6 @@
285283
// Increase specificity when btn-octicon is used because comes after .Box in the cascade
286284
&.btn-octicon {
287285
padding: $spacer-3 $spacer-3;
288-
// stylelint-disable-next-line primer/spacing
289286
margin: (-$spacer-3) (-$spacer-3);
290287
line-height: $lh-default; // override btn-octicon line-height
291288
}

src/buttons/button.scss

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

295295
// Large button adds more padding around text. Use font-size utils to increase font-size.. e.g, <p class="text-gamma"><button class="btn btn-large btn-primary" type="button">Big green button</button></p>
296296
.btn-large {
297+
// stylelint-disable-next-line primer/spacing
297298
padding: $em-spacer-6 1.5em;
298299
font-size: inherit;
299300
line-height: $lh-default;

src/forms/form-control.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ input::-webkit-inner-spin-button {
243243
}
244244

245245
.form-warning {
246+
// stylelint-disable-next-line primer/spacing
246247
padding: $spacer-2 10px;
247248
// stylelint-disable-next-line primer/spacing
248249
margin: 10px 0;

0 commit comments

Comments
 (0)