Skip to content

Commit b17a7f4

Browse files
committed
fix: get rid of stylelint-csstree-validator
1 parent 31989bb commit b17a7f4

4 files changed

Lines changed: 6 additions & 17 deletions

File tree

index.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"stylelint-config-property-sort-order-smacss"
55
],
66
"plugins": [
7-
"stylelint-csstree-validator",
87
"stylelint-order",
98
"stylelint-scss"
109
],
@@ -14,13 +13,11 @@
1413
],
1514
"customSyntax": "postcss-scss",
1615
"rules": {
16+
"declaration-property-value-no-unknown": true,
1717
"alpha-value-notation": null,
1818
"annotation-no-unknown": null,
1919
"at-rule-no-unknown": null,
2020
"color-function-notation": null,
21-
"csstree/validator": {
22-
"syntaxExtensions": ["sass"]
23-
},
2421
"function-no-unknown": null,
2522
"import-notation": null,
2623
"keyframes-name-pattern": null,

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"postcss-scss": "^4.0.5",
2121
"stylelint-config-property-sort-order-smacss": "^9.0.0",
2222
"stylelint-config-standard": "^30.0.0",
23-
"stylelint-csstree-validator": "^2.0.0",
2423
"stylelint-scss": "^4.3.0"
2524
},
2625
"devDependencies": {

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ test('order/properties-order (stylelint-config-property-sort-order-smacss)', asy
4242
assert.strictEqual(output.results[0].warnings[0].text.trim(), 'Expected "top" to come before "color" in group "box" (order/properties-order)')
4343
})
4444

45-
test('csstree/validator (stylelint-csstree-validator)', async () => {
45+
test('declaration-property-value-no-unknown', async () => {
4646
const output = await stylelint.lint({
4747
code: 'a { max-width: auto; }\n',
4848
config,
4949
})
5050
assert.strictEqual(output.results[0].warnings.length, 1)
51-
assert.strictEqual(output.results[0].warnings[0].text.trim(), 'Invalid value for "max-width" (csstree/validator)')
51+
assert.strictEqual(output.results[0].warnings[0].text.trim(), 'Unexpected unknown value "auto" for property "max-width" (declaration-property-value-no-unknown)')
5252
})
5353

5454
test('scss/no-duplicate-dollar-variables (stylelint-scss)', async () => {

yarn.lock

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,9 @@ source-map-js@^1.0.1, source-map-js@^1.0.2:
961961
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
962962

963963
spdx-correct@^3.0.0:
964-
version "3.1.1"
965-
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9"
966-
integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==
964+
version "3.2.0"
965+
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c"
966+
integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==
967967
dependencies:
968968
spdx-expression-parse "^3.0.0"
969969
spdx-license-ids "^3.0.0"
@@ -1034,13 +1034,6 @@ stylelint-config-standard@^30.0.0:
10341034
dependencies:
10351035
stylelint-config-recommended "^10.0.1"
10361036

1037-
stylelint-csstree-validator@^2.0.0:
1038-
version "2.1.0"
1039-
resolved "https://registry.yarnpkg.com/stylelint-csstree-validator/-/stylelint-csstree-validator-2.1.0.tgz#1170a0b769ce52149a9047b2d0a6b1a5d085a3dc"
1040-
integrity sha512-FKUMEz/iicwkOsY+ohstjlD9dj3qFdAVcw/oVwBDJwToUpwAh/GkvV5FXUd60DoAzn19s1TPsvUuGPbzDo0ZMw==
1041-
dependencies:
1042-
css-tree "^2.3.1"
1043-
10441037
stylelint-order@^6.0.2:
10451038
version "6.0.2"
10461039
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-6.0.2.tgz#df54d3ed9aa5a45d4563ada0375e670140a798c2"

0 commit comments

Comments
 (0)