Skip to content

Commit 541348a

Browse files
feat: scss-syntax-parser (#153)
1 parent 3e7d7f9 commit 541348a

File tree

3 files changed

+156
-78
lines changed

3 files changed

+156
-78
lines changed

.stylelintrc.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
{
2-
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3-
"plugins": ["stylelint-scss"],
2+
"extends": ["stylelint-config-standard-scss", "stylelint-config-prettier"],
43
"rules": {
54
"at-rule-no-unknown": null,
65
"scss/at-rule-no-unknown": [true],
76
"color-named": "never",
87
"color-hex-length": "long",
9-
"function-blacklist": ["rgb", "hsl"],
8+
"function-disallowed-list": ["rgb", "hsl"],
109
"declaration-block-no-duplicate-properties": [
1110
true,
1211
{
1312
"ignore": ["consecutive-duplicates-with-different-values"]
1413
}
1514
],
1615
"declaration-empty-line-before": null,
17-
"declaration-property-unit-whitelist": {
16+
"declaration-property-unit-allowed-list": {
1817
"/^border(?!.*-radius$)/": ["px", "%"],
1918
"/^border-radius/": ["px", "rem", "%"],
2019
"/^box-shadow": ["px"],
@@ -52,6 +51,24 @@
5251
{
5352
"ignorePseudoClasses": ["global"]
5453
}
55-
]
54+
],
55+
"scss/at-import-partial-extension": null,
56+
"scss/comment-no-empty": null,
57+
"scss/double-slash-comment-empty-line-before": null,
58+
"scss/at-extend-no-missing-placeholder": null,
59+
"no-invalid-position-at-import-rule": null,
60+
"rule-empty-line-before": null,
61+
"selector-no-vendor-prefix": null,
62+
"alpha-value-notation": null,
63+
"color-function-notation": null,
64+
"scss/no-global-function-names": null,
65+
"value-keyword-case": null,
66+
"shorthand-property-no-redundant-values": null,
67+
"scss/operator-no-unspaced": null,
68+
"declaration-block-no-redundant-longhand-properties": null,
69+
"keyframes-name-pattern": null,
70+
"number-max-precision": null,
71+
"scss/dollar-variable-empty-line-before": null,
72+
"property-no-vendor-prefix": null
5673
}
5774
}

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
"husky": "^5.0.9",
3131
"prettier": "^2.2.1",
3232
"semantic-release": "^17.3.9",
33-
"stylelint": "^14.2.0",
34-
"typescript": "^4.1.5"
33+
"stylelint": "^14.3.0",
34+
"typescript": "^4.5.5"
3535
},
3636
"dependencies": {
37-
"stylelint-config-prettier": "^8.0.1",
38-
"stylelint-config-standard": "^20.0.0",
39-
"stylelint-scss": "^3.17.2"
37+
"stylelint-config-prettier": "^9.0.3",
38+
"stylelint-config-standard-scss": "^3.0.0"
4039
},
4140
"husky": {
4241
"hooks": {

0 commit comments

Comments
 (0)