Skip to content

Commit db6c93e

Browse files
fix(stylelint): Bump to v16 (#4058)
1 parent 8a794ad commit db6c93e

File tree

79 files changed

+574
-1619
lines changed

Some content is hidden

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

79 files changed

+574
-1619
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"lint": "npm-run-all lint:*",
6565
"lint:js": "eslint --max-warnings=0 .",
6666
"lint:ts": "tsc",
67-
"lint:css": "stylelint \"src/**/*.scss\" --syntax scss",
67+
"lint:css": "stylelint \"src/**/*.scss\"",
6868
"prebuild:es": "npm-run-all copy:styles ts:defs copy:flow",
6969
"release": "yarn release:beta",
7070
"release:beta": "DIST=beta BRANCH=master ./scripts/release.sh",
@@ -128,7 +128,7 @@
128128
"@box/box-ai-content-answers": "^0.113.0",
129129
"@box/cldr-data": "^34.2.0",
130130
"@box/combobox-with-api": "^0.28.4",
131-
"@box/frontend": "^10.0.1",
131+
"@box/frontend": "^11.0.0",
132132
"@box/item-icon": "^0.9.83",
133133
"@box/languages": "^1.0.0",
134134
"@box/metadata-editor": "^0.97.3",
@@ -241,7 +241,7 @@
241241
"msw-storybook-addon": "^2.0.2",
242242
"npm-run-all": "^4.1.5",
243243
"pikaday": "^1.8.0",
244-
"postcss": "^8.4.31",
244+
"postcss": "^8.5.3",
245245
"postcss-loader": "^8.1.1",
246246
"prettier": "^3.2.5",
247247
"prettier-eslint-cli": "^5.0.0",
@@ -281,10 +281,10 @@
281281
"storybook-react-intl": "^3.1.1",
282282
"string-replace-loader": "^3.1.0",
283283
"styled-components": "5.0.0",
284-
"stylelint": "^12.0.0",
285-
"stylelint-config-rational-order": "^0.1.2",
286-
"stylelint-config-standard": "^19.0.0",
287-
"stylelint-order": "^3.1.1",
284+
"stylelint": "^16.18.0",
285+
"stylelint-config-standard": "^38.0.0",
286+
"stylelint-config-standard-scss": "^14.0.0",
287+
"stylelint-order": "^6.0.4",
288288
"tabbable": "^1.1.3",
289289
"ts-loader": "^6.2.1",
290290
"typescript": "5.2.2",

scripts/lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = {
33
'*.md': ['prettier --write --parser=markdown', 'git add'],
44
'*.json': ['prettier --write --parser=json', 'git add'],
55
'*.html': ['prettier --write --parser=html', 'git add'],
6-
'*.scss': ['prettier --write --parser=scss', 'stylelint --syntax scss --fix', 'git add'],
7-
'*.css': ['prettier --write --parser=css', 'stylelint --syntax css --fix', 'git add'],
6+
'*.scss': ['prettier --write --parser=scss', 'stylelint --fix', 'git add'],
7+
'*.css': ['prettier --write --parser=css', 'stylelint --fix', 'git add'],
88
};

src/components/badgeable/Badgeable.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
$badgeable-position-offset: 1px;
55
$badgeable-icon-size: 14px;
6-
7-
$badgeable-position: ($badgeable-icon-size * .5);
6+
$badgeable-position: ($badgeable-icon-size * 0.5);
87

98
%badge {
109
position: absolute;

src/components/category-selector/CategorySelector.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545

4646
&:focus {
4747
border-color: $bdl-box-blue;
48-
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 1px 2px rgba(0, 0, 0, .1);
48+
box-shadow:
49+
inset 0 0 0 1px rgb(255 255 255 / 80%),
50+
0 1px 2px rgb(0 0 0 / 10%);
4951
}
5052
}
5153
}

src/components/date-picker/_pikaday.scss

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

2323
&.is-bound {
2424
position: absolute;
25-
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .1);
25+
box-shadow: 0 2px 6px 0 rgb(0 0 0 / 10%);
2626

2727
&.bottom-aligned {
2828
margin-top: 5px;
@@ -120,7 +120,7 @@
120120
&.bdl-is-disabled,
121121
&.is-disabled {
122122
&::before {
123-
opacity: .2;
123+
opacity: 0.2;
124124
}
125125
}
126126
}
@@ -142,7 +142,7 @@
142142
&.bdl-is-disabled,
143143
&.is-disabled {
144144
&::after {
145-
opacity: .2;
145+
opacity: 0.2;
146146
}
147147
}
148148
}
@@ -165,7 +165,7 @@
165165

166166
th,
167167
td {
168-
width: 14.285714285714286%;
168+
width: 14.2857%;
169169
}
170170

171171
> thead > tr {
@@ -203,6 +203,6 @@
203203
.bdl-is-disabled .pika-button,
204204
.is-outside-current-month .pika-button {
205205
cursor: default;
206-
opacity: .3;
206+
opacity: 0.3;
207207
pointer-events: none;
208208
}

src/components/dropdown-menu/DropdownMenu.scss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
.bdl-DropdownMenu--responsive {
2424
&.dropdown-menu-enabled {
2525
position: fixed;
26-
top: 0;
27-
right: 0;
28-
bottom: 0;
29-
left: 0;
26+
inset: 0;
3027
margin-top: 0;
3128
margin-bottom: $bdl-header-height;
29+
3230
// cancels out the tether inline styling without having to set enabled=false
3331
transform: none !important;
3432
}
@@ -49,16 +47,13 @@
4947
left: 0;
5048
display: flex;
5149
height: $bdl-header-height;
52-
padding: ($bdl-grid-unit * 3) ($bdl-grid-unit * 3);
50+
padding: ($bdl-grid-unit * 3);
5351
background-color: $white;
5452
box-shadow: $bdl-header-box-shadow;
5553
}
5654

5755
.submenu:not(.is-hidden) {
58-
top: 100%;
59-
right: 0;
60-
bottom: auto;
61-
left: auto;
56+
inset: 100% 0 auto auto;
6257

6358
&.is-right-bottom-aligned {
6459
top: auto;

src/components/flyout/Flyout.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@
3434

3535
.bdl-Overlay > .overlay {
3636
position: fixed;
37-
top: 0;
38-
right: 0;
39-
bottom: 0;
40-
left: 0;
37+
inset: 0;
4138
margin: 0;
4239
padding: 0;
4340
background-color: $white;

src/components/grid-view/GridViewSlot.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.bdl-GridViewSlot-content {
1212
height: 100%;
1313
border: 1px solid $bdl-gray-10;
14-
box-shadow: 0 1px 5px rgba(50, 50, 50, .1);
14+
box-shadow: 0 1px 5px rgb(50 50 50 / 10%);
1515

1616
&:hover,
1717
&:active,

src/components/guide-tooltip/GuideTooltip.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $bdl-guide-tooltip-max-width: 408px;
2626
.bdl-GuideTooltip-image {
2727
margin-right: -($bdl-grid-unit * 6);
2828
margin-left: -($bdl-grid-unit * 6);
29-
padding: ($bdl-grid-unit * 4) 0 ($bdl-grid-unit * 5) 0;
29+
padding: ($bdl-grid-unit * 4) 0 ($bdl-grid-unit * 5);
3030
text-align: center;
3131

3232
img {
@@ -48,7 +48,7 @@ $bdl-guide-tooltip-max-width: 408px;
4848

4949
.bdl-GuideTooltip-title,
5050
.bdl-GuideTooltip-body {
51-
letter-spacing: .3px;
51+
letter-spacing: 0.3px;
5252
}
5353

5454
button.bdl-GuideTooltip-previousButton,

src/components/label-pill/LabelPill.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
top: 2px;
5151

5252
path {
53-
fill: currentColor;
53+
fill: currentcolor;
5454
}
5555
}
5656

0 commit comments

Comments
 (0)