Skip to content

Commit 8df09bc

Browse files
committed
add stylelint-value-no-unknown-custom-properties and remove unknown properties
1 parent efb6861 commit 8df09bc

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

css/blog.css

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ main > header > h1 {
2525

2626
.excerpt {
2727
margin-block: var(--size-4);
28-
color: var(--text-4);
2928
}
3029

3130
.blog-listing {

css/global.css

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
:where(:focus-visible) {
4343
outline-style: solid;
44-
outline-width: var(--border-1);
4544
}
4645

4746
:where(:not(pre) > code) {

package-lock.json

+28-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"extends": "stylelint-config-standard",
2727
"plugins": [
2828
"stylelint-use-logical",
29-
"stylelint-media-use-custom-media"
29+
"stylelint-media-use-custom-media",
30+
"stylelint-value-no-unknown-custom-properties"
3031
],
3132
"rules": {
3233
"csstools/use-logical": "always",
@@ -35,6 +36,16 @@
3536
{
3637
"importFrom": "./node_modules/open-props/media.min.css"
3738
}
39+
],
40+
"csstools/value-no-unknown-custom-properties": [
41+
true,
42+
{
43+
"importFrom": [
44+
"./css/global.css",
45+
"./node_modules/open-props/open-props.min.css",
46+
"./node_modules/open-props/normalize.min.css"
47+
]
48+
}
3849
]
3950
}
4051
},
@@ -103,6 +114,7 @@
103114
"stylelint": "^14.16.0",
104115
"stylelint-config-standard": "^29.0.0",
105116
"stylelint-media-use-custom-media": "^2.0.1",
106-
"stylelint-use-logical": "^2.0.0"
117+
"stylelint-use-logical": "^2.0.0",
118+
"stylelint-value-no-unknown-custom-properties": "^4.0.0"
107119
}
108120
}

0 commit comments

Comments
 (0)