Skip to content

Commit 2400209

Browse files
committed
Stylelint fixes
1 parent 1a6d5cb commit 2400209

File tree

10 files changed

+77
-18
lines changed

10 files changed

+77
-18
lines changed

.stylelintrc.json

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
{
22
"extends": "stylelint-config-sass-guidelines",
3+
"plugins": ["stylelint-order"],
34
"rules": {
4-
"indentation": 2,
5-
"max-nesting-depth": 6,
6-
"selector-class-pattern": [
7-
"^[a-z0-9\\:-]+$"
8-
]
5+
"selector-max-compound-selectors": 5,
6+
"max-nesting-depth": 4,
7+
"selector-no-vendor-prefix": [
8+
true,
9+
{
10+
"ignoreSelectors": ["/-moz-.*/", "/-ms-.*/", "/-webkit-.*/"]
11+
}
12+
],
13+
"selector-no-qualifying-type": [
14+
true,
15+
{
16+
"ignore": ["attribute"]
17+
}
18+
],
19+
"value-no-vendor-prefix": [
20+
true,
21+
{
22+
"ignoreValues": ["box"]
23+
}
24+
],
25+
"selector-class-pattern": null,
26+
"scss/percent-placeholder-pattern": null,
27+
"order/properties-alphabetical-order": true,
28+
"@stylistic/function-parentheses-space-inside": null
929
}
10-
}
30+
}

package-lock.json

Lines changed: 26 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
},
4040
"devDependencies": {
4141
"stylelint": "^16.10.0",
42-
"stylelint-config-sass-guidelines": "^12.1.0"
42+
"stylelint-config-sass-guidelines": "^12.1.0",
43+
"stylelint-order": "^6.0.4"
4344
},
4445
"engines": {
4546
"node": "^18.0 || ^19.0 || ^20.0 || ^21.0"

resources/sass/component/_media-uploader.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
line-height: config('line-height-md', $typography);
3434
position: relative;
3535

36-
&[aria-checked="true"],
36+
&[aria-checked='true'],
3737
&:focus-visible {
3838
@include focus-ring(
3939
$type: config('focus-ring-type', $btn, false),

resources/sass/component/_notification.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@
167167
margin-inline-start: calc(var(--icon-size) / 2);
168168
padding-inline-start: calc(var(--icon-size) / 2);
169169

170-
&[aria-hidden="true"] {
170+
&[aria-hidden='true'] {
171171
grid-template-rows: 0fr;
172172
}
173173

174-
&[aria-hidden="false"] {
174+
&[aria-hidden='false'] {
175175
grid-template-rows: 1fr;
176176
margin-block-start: spacer('s');
177177
}

resources/sass/component/_pagination.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
}
1414

15-
[aria-current="page"] {
15+
[aria-current='page'] {
1616
background-color: color('primary-background', 'btn');
1717
color: color('primary-foreground', 'btn');
1818
}

resources/sass/component/form/_combobox.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
z-index: 5;
5050
}
5151

52-
[role="listbox"] {
52+
[role='listbox'] {
5353
@include clear-list;
5454
@include scrollbar;
5555
display: flex;
@@ -64,7 +64,7 @@
6464
}
6565
}
6666

67-
[role="option"] {
67+
[role='option'] {
6868
align-items: center;
6969
border-radius: config('border-radius', $form-control);
7070
display: flex;
@@ -73,7 +73,7 @@
7373
padding-inline: spacer('xs');
7474
user-select: none;
7575

76-
&[aria-selected="true"] {
76+
&[aria-selected='true'] {
7777
background-color: color('light-background', 'btn');
7878
color: color('light-foreground', 'btn');
7979
}

resources/sass/extend/_progress.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
inset: 0 auto 0 0;
2222
position: absolute;
2323

24-
&:not([style*="inline-size"]) {
24+
&:not([style*='inline-size']) {
2525
animation: 1s progress infinite linear alternate;
2626
inline-size: 20%;
2727
}

resources/sass/section/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use 'sprucecss/scss/spruce' as *;
22

33
.app-header {
4-
backdrop-filter: saturate(180%) blur(.25rem);
4+
backdrop-filter: saturate(180%) blur(0.25rem);
55
background-color: color('background', 'header');
66
border-block-end: 1px solid color('border');
77
inset-block-start: 0;

yarn.lock

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)