Skip to content

Commit 4a2efa0

Browse files
authored
[chore] Update stylelint dependencies (#7608)
1 parent 66f3e3c commit 4a2efa0

File tree

43 files changed

+348
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+348
-252
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
"octokit": "^3.1.2",
5959
"prettier": "^3.6.2",
6060
"sinon": "^17.0.1",
61-
"stylelint": "~16.11.0",
62-
"stylelint-config-palantir": "^7.4.0",
63-
"stylelint-scss": "^6.8.1",
61+
"stylelint": "~16.25.0",
62+
"stylelint-config-palantir": "^7.6.0",
63+
"stylelint-scss": "^6.12.1",
6464
"typescript": "~5.3.3",
6565
"typescript-eslint": "^8.23.0",
6666
"yargs": "^17.7.2",

packages/core/src/_reset.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ html {
1919
// Style resets on top of Normalize.css
2020

2121
body {
22-
@include base-typography();
22+
@include base-typography;
2323
color: $pt-text-color;
2424
font-family: $pt-font-family;
2525
}

packages/core/src/_typography.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@import "common/mixins";
88
@import "common/typography-colors";
99
@import "components/icon/icon";
10-
@include pt-typography-colors();
10+
@include pt-typography-colors;
1111

1212
/*
1313
Headings
@@ -28,7 +28,7 @@ Styleguide headings
2828
*/
2929

3030
.#{$ns}-heading {
31-
@include heading-typography();
31+
@include heading-typography;
3232
margin: 0 0 ($pt-spacing * 3);
3333
padding: 0;
3434
}
@@ -96,17 +96,17 @@ Styleguide ui-text
9696
*/
9797

9898
.#{$ns}-ui-text {
99-
@include base-typography();
99+
@include base-typography;
100100
}
101101

102102
.#{$ns}-monospace-text {
103-
@include monospace-typography();
103+
@include monospace-typography;
104104
}
105105

106106
// NOTE: .#{$ns}-text-large defined below after .#{$ns}-running-text
107107

108108
.#{$ns}-text-overflow-ellipsis {
109-
@include overflow-ellipsis();
109+
@include overflow-ellipsis;
110110
}
111111

112112
/*
@@ -138,12 +138,12 @@ Styleguide running-text
138138
*/
139139

140140
.#{$ns}-running-text {
141-
@include running-typography();
141+
@include running-typography;
142142

143143
@each $tag, $props in $headings {
144144
#{$tag} {
145145
@extend %#{$tag};
146-
@include heading-typography();
146+
@include heading-typography;
147147
margin-bottom: $pt-spacing * 5;
148148
margin-top: $pt-spacing * 10;
149149
}
@@ -240,14 +240,14 @@ Styleguide preformatted
240240
*/
241241

242242
%code {
243-
@include monospace-typography();
243+
@include monospace-typography;
244244
border-radius: $pt-border-radius;
245245
font-size: smaller;
246246
padding: ($pt-spacing * 0.5) $pt-spacing;
247247
}
248248

249249
%code-block {
250-
@include monospace-typography();
250+
@include monospace-typography;
251251
border-radius: $pt-border-radius;
252252

253253
display: block;
@@ -400,5 +400,5 @@ Dark theme
400400
*/
401401

402402
.#{$ns}-dark {
403-
@include pt-dark-typography-colors();
403+
@include pt-dark-typography-colors;
404404
}

packages/core/src/accessibility/_focus-states.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Apache License, Version 2.0.
33

44
:focus {
5-
@include focus-outline();
5+
@include focus-outline;
66
}
77

88
// override any focus outline anywhere unless specifically ignored

packages/core/src/components/button/_button-group.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
&.#{$ns}-minimal,
8888
&.#{$ns}-outlined {
8989
.#{$ns}-button {
90-
@include pt-button-minimal();
90+
@include pt-button-minimal;
9191
}
9292

9393
@media (forced-colors: active) and (prefers-color-scheme: dark) {
@@ -110,7 +110,7 @@
110110

111111
&.#{$ns}-outlined {
112112
> .#{$ns}-button {
113-
@include pt-button-outlined();
113+
@include pt-button-outlined;
114114
}
115115

116116
&:not(.#{$ns}-vertical) {

packages/core/src/components/button/_button.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@import "./common";
77

88
.#{$ns}-button {
9-
@include pt-button-layout();
9+
@include pt-button-layout;
1010
@include pt-button-height($pt-button-height);
1111

1212
&:empty {
@@ -37,7 +37,7 @@
3737

3838
// default styles
3939
&:not([class*="#{$ns}-intent-"]) {
40-
@include pt-button();
40+
@include pt-button;
4141
}
4242

4343
// intents
@@ -54,12 +54,12 @@
5454
// size modifiers
5555
&.#{$ns}-large,
5656
.#{$ns}-large & {
57-
@include pt-button-height-large();
57+
@include pt-button-height-large;
5858
}
5959

6060
&.#{$ns}-small,
6161
.#{$ns}-small & {
62-
@include pt-button-height-small();
62+
@include pt-button-height-small;
6363
}
6464

6565
// loading state
@@ -84,7 +84,7 @@
8484
// icons
8585
&[class*="#{$ns}-icon-"] {
8686
&::before {
87-
@include pt-icon();
87+
@include pt-icon;
8888
color: $pt-icon-color;
8989
}
9090
}
@@ -110,7 +110,7 @@
110110
// dark theme
111111
.#{$ns}-dark & {
112112
&:not([class*="#{$ns}-intent-"]) {
113-
@include pt-dark-button();
113+
@include pt-dark-button;
114114

115115
&[class*="#{$ns}-icon-"]::before {
116116
color: $pt-dark-icon-color;
@@ -124,7 +124,7 @@
124124
}
125125

126126
&[class*="#{$ns}-intent-"] {
127-
@include pt-dark-button-intent();
127+
@include pt-dark-button-intent;
128128

129129
.#{$ns}-button-spinner .#{$ns}-spinner-head {
130130
stroke: $dark-progress-head-color;
@@ -145,13 +145,13 @@
145145

146146
// minimal must come last to override all default styles
147147
&.#{$ns}-minimal {
148-
@include pt-button-minimal();
148+
@include pt-button-minimal;
149149
}
150150

151151
// outline is based on the styles of minimal
152152
&.#{$ns}-outlined {
153-
@include pt-button-minimal();
154-
@include pt-button-outlined();
153+
@include pt-button-minimal;
154+
@include pt-button-outlined;
155155
}
156156

157157
// special case override: use dark text for warning intent

packages/core/src/components/button/_common.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,20 @@ $button-intents: (
126126

127127
// N.B. this mixin cannot be used on pseudo element selectors because it will produce invalid CSS
128128
@mixin pt-button() {
129-
@include pt-button-default-colors();
129+
@include pt-button-default-colors;
130130

131131
&:hover {
132-
@include pt-button-hover();
132+
@include pt-button-hover;
133133
}
134134

135135
&:active,
136136
&.#{$ns}-active {
137-
@include pt-button-active();
137+
@include pt-button-active;
138138
}
139139

140140
&:disabled,
141141
&.#{$ns}-disabled {
142-
@include pt-button-disabled();
142+
@include pt-button-disabled;
143143

144144
&.#{$ns}-active,
145145
&.#{$ns}-active:hover {
@@ -232,7 +232,7 @@ $button-intents: (
232232

233233
// N.B. this mixin cannot be used on pseudo element selectors because it will produce invalid CSS
234234
@mixin pt-dark-button() {
235-
@include pt-dark-button-default-colors();
235+
@include pt-dark-button-default-colors;
236236

237237
&:hover,
238238
&:active,
@@ -241,17 +241,17 @@ $button-intents: (
241241
}
242242

243243
&:hover {
244-
@include pt-dark-button-hover();
244+
@include pt-dark-button-hover;
245245
}
246246

247247
&:active,
248248
&.#{$ns}-active {
249-
@include pt-dark-button-active();
249+
@include pt-dark-button-active;
250250
}
251251

252252
&:disabled,
253253
&.#{$ns}-disabled {
254-
@include pt-dark-button-disabled();
254+
@include pt-dark-button-disabled;
255255

256256
&.#{$ns}-active {
257257
background: $dark-button-background-color-active-disabled;
@@ -300,7 +300,7 @@ $button-intents: (
300300

301301
&:disabled,
302302
&.#{$ns}-disabled {
303-
@include pt-dark-button-intent-disabled();
303+
@include pt-dark-button-intent-disabled;
304304
}
305305
}
306306

@@ -341,7 +341,7 @@ $button-intents: (
341341
}
342342

343343
.#{$ns}-dark & {
344-
@include pt-dark-button-minimal();
344+
@include pt-dark-button-minimal;
345345
}
346346

347347
@each $intent, $colors in $button-intents {
@@ -494,7 +494,7 @@ $dark-minimal-active-text-colors: (
494494
}
495495

496496
.#{$ns}-dark & {
497-
@include pt-dark-button-outlined();
497+
@include pt-dark-button-outlined;
498498
}
499499

500500
@each $intent, $colors in $button-intents {

packages/core/src/components/callout/_callout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $callout-header-margin-top: $pt-spacing * 0.5;
99
$callout-padding-compact: $pt-spacing * 2;
1010

1111
.#{$ns}-callout {
12-
@include running-typography();
12+
@include running-typography;
1313
border-radius: $pt-border-radius;
1414
padding: $callout-padding;
1515
position: relative;

packages/core/src/components/dialog/_dialog.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $dialog-header-padding: $pt-spacing;
9595
}
9696

9797
.#{$ns}-heading {
98-
@include overflow-ellipsis();
98+
@include overflow-ellipsis;
9999
flex: 1 1 auto;
100100
line-height: inherit;
101101
margin: 0;

packages/core/src/components/drawer/_drawer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ $dark-drawer-background-color: $dark-gray3 !default;
205205
}
206206

207207
.#{$ns}-heading {
208-
@include overflow-ellipsis();
208+
@include overflow-ellipsis;
209209
flex: 1 1 auto;
210210
line-height: inherit;
211211
margin: 0;

0 commit comments

Comments
 (0)