Skip to content

Commit 929fc39

Browse files
committed
Fixed deprecated stylelint rules
1 parent 7951587 commit 929fc39

File tree

7 files changed

+73
-39
lines changed

7 files changed

+73
-39
lines changed

.stylelintrc

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": [
33
"stylelint-config-recess-order",
44
"stylelint-config-recommended",
5-
"stylelint-config-standard-scss"
5+
"stylelint-config-standard-scss",
6+
"stylelint-stylistic/config"
67
],
78
"plugins": [
89
"stylelint-scss"
@@ -32,16 +33,6 @@
3233
}
3334
],
3435
"at-rule-no-unknown": null,
35-
"block-closing-brace-newline-after": [
36-
"always",
37-
{
38-
"ignoreAtRules": [
39-
"if",
40-
"else",
41-
"elseif"
42-
]
43-
}
44-
],
4536
"color-function-notation": null,
4637
"color-hex-length": "long",
4738
"color-named": "never",
@@ -58,25 +49,23 @@
5849
"declaration-colon-space-after": null,
5950
"declaration-no-important": true,
6051
"declaration-block-single-line-max-declarations": 0,
52+
"font-family-name-quotes": "always-where-recommended",
53+
"font-weight-notation": "numeric",
6154
"function-calc-no-unspaced-operator": null,
6255
"function-no-unknown": null,
6356
"function-url-no-scheme-relative": true,
6457
"function-url-quotes": "always",
65-
"font-family-name-quotes": "always-where-recommended",
66-
"font-weight-notation": "numeric",
6758
"hue-degree-notation": "number",
6859
"length-zero-no-unit": [
6960
true,
7061
{
7162
"ignore": ["custom-properties"]
7263
}
7364
],
74-
"linebreaks": "unix",
7565
"media-feature-name-no-unknown": null,
7666
"media-feature-range-notation": null,
7767
"media-query-no-invalid": null,
7868
"no-descending-specificity": null,
79-
"no-empty-first-line": true,
8069
"no-unknown-animations": true,
8170
"property-no-unknown": null,
8271
"property-no-vendor-prefix": [
@@ -92,13 +81,10 @@
9281
"selector-combinator-space-before": null,
9382
"selector-descendant-combinator-no-non-space": null,
9483
"selector-id-pattern": null,
95-
"selector-max-empty-lines": 0,
9684
"selector-max-id": 0,
9785
"selector-no-qualifying-type": null,
9886
"selector-pseudo-class-no-unknown": null,
9987
"selector-pseudo-element-no-unknown": null,
100-
"string-quotes": "double",
101-
"unicode-bom": "never",
10288
"unit-allowed-list": [
10389
"%",
10490
"ch",
@@ -160,6 +146,23 @@
160146
"scss/operator-no-unspaced": true,
161147
"scss/partial-no-import": true,
162148
"scss/percent-placeholder-pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
163-
"scss/selector-no-redundant-nesting-selector": true
149+
"scss/selector-no-redundant-nesting-selector": true,
150+
"stylistic/block-closing-brace-newline-after": [
151+
"always",
152+
{
153+
"ignoreAtRules": [
154+
"if",
155+
"else",
156+
"elseif"
157+
]
158+
}
159+
],
160+
"stylistic/declaration-colon-space-after": null,
161+
"stylistic/no-empty-first-line": true,
162+
"stylistic/linebreaks": "unix",
163+
"stylistic/selector-max-empty-lines": 0,
164+
"stylistic/string-quotes": "double",
165+
"stylistic/unicode-bom": "never",
166+
"stylistic/value-list-comma-newline-after": null
164167
}
165168
}

package-lock.json

Lines changed: 45 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"stylelint-config-recommended": "^13.0.0",
9393
"stylelint-config-standard-scss": "^11.0.0",
9494
"stylelint-scss": "^5.2.1",
95+
"stylelint-stylistic": "^0.4.3",
9596
"svgo": "3.0.0",
9697
"tiny-glob": "^0.2.9",
9798
"ts-node": "^10.9.1",

src/overrides/assets/stylesheets/custom/_typeset.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595

9696
// Badge
9797
.mdx-badge {
98-
font-size: .85em;
98+
font-size: 0.85em;
9999

100100
// Badge with heart
101101
&--heart {
@@ -112,7 +112,7 @@
112112
// Badge moved to the right
113113
&--right {
114114
float: right;
115-
margin-left: .35em;
115+
margin-left: 0.35em;
116116
}
117117

118118
// Badge icon

src/templates/assets/stylesheets/main/components/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
flex-shrink: 0;
8080

8181
// Hide footer title
82-
.md-footer__title {
82+
.md-footer__title {
8383
display: none;
8484
}
8585
}

src/templates/assets/stylesheets/main/components/_search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
}
371371

372372
// Show buttons when search is active and input non-empty
373-
[data-md-toggle="search"]:checked ~ .md-header
373+
[data-md-toggle="search"]:checked ~ .md-header // stylelint-disable-line
374374
.md-search__input:valid ~ & {
375375
pointer-events: initial;
376376
opacity: 1;

src/templates/assets/stylesheets/palette/_scheme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
// Footer color shades
8888
--md-footer-bg-color: hsla(var(--md-hue), 15%, 10%, 0.87);
89-
--md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 8%, 1);
89+
--md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 8%, 1);
9090

9191
// Shadow depth 1
9292
--md-shadow-z1:

0 commit comments

Comments
 (0)