Skip to content

Commit

Permalink
build: update stylelint usage to remove blacklist and whitelist (#1296)
Browse files Browse the repository at this point in the history
Update the stylelint config file to use unit-allowed-list,
declaration-property-value-disallowed-list and function-url-scheme-disallowed-list
  • Loading branch information
josephperrott committed Sep 21, 2020
1 parent 381b7c5 commit 0621f58
Show file tree
Hide file tree
Showing 3 changed files with 844 additions and 563 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -115,7 +115,7 @@
"scss-bundle": "^2.4.0",
"selenium-webdriver": "^3.6.0",
"sorcery": "^0.10.0",
"stylelint": "^9.8.0",
"stylelint": "^13.7.1",
"temp": "0.8.3",
"ts-node": "^3.0.4",
"tsconfig-paths": "^2.3.0",
Expand Down
6 changes: 3 additions & 3 deletions stylelint-config.json
Expand Up @@ -8,7 +8,7 @@
"function-comma-space-before": "never",
"function-name-case": "lower",
"function-url-quotes": "always",
"function-url-scheme-blacklist": ["data"],
"function-url-scheme-disallowed-list": ["data"],
"function-whitespace-after": "always",

"number-leading-zero": "always",
Expand All @@ -20,7 +20,7 @@

"unit-case": "lower",
"unit-no-unknown": true,
"unit-whitelist": ["px", "%", "deg", "ms", "em", "vh", "vw", "vmin"],
"unit-allowed-list": ["px", "%", "deg", "ms", "em", "vh", "vw", "vmin"],

"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
Expand All @@ -39,7 +39,7 @@
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-property-value-blacklist": [
"declaration-property-value-disallowed-list": [
{"/.*/": ["initial"]},
{"message": "The `initial` value is not supported in IE."}
],
Expand Down

0 comments on commit 0621f58

Please sign in to comment.