diff options
author | moisseev <moiseev@mezonplus.ru> | 2021-11-14 20:39:52 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2021-11-14 20:39:52 +0300 |
commit | 8d33c6634f3bd79c4bf42c869cd0d284a2fb3312 (patch) | |
tree | e8fa2f19c7c3e504b378e80b7aa90861e53eb4ce | |
parent | c055b7192fcdfc88cc7616fb1c16624071e6362c (diff) | |
download | rspamd-8d33c6634f3bd79c4bf42c869cd0d284a2fb3312.tar.gz rspamd-8d33c6634f3bd79c4bf42c869cd0d284a2fb3312.zip |
[Test] Add PostCSS syntaxes for embedded styles
(required since Stylelint 14.0.0)
-rw-r--r-- | .stylelintrc.json | 10 | ||||
-rw-r--r-- | package.json | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json index be1ea613f..ad79b181a 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,5 +1,15 @@ { "extends": "stylelint-config-standard", + "overrides": [ + { + "files": ["**/*.html"], + "customSyntax": "postcss-html" + }, + { + "files": ["**/*.js"], + "customSyntax": "@stylelint/postcss-css-in-js" + } + ], "ignoreFiles": [ "**/*.min.css", "**/*.min.js", diff --git a/package.json b/package.json index 076e7445f..57a46430e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "devDependencies": { "eslint": "*", "stylelint": ">=13.6.0", - "stylelint-config-standard": "*" + "stylelint-config-standard": "*", + "postcss-html": "*", + "@stylelint/postcss-css-in-js": "*" }, "eslintIgnore": [ "*.min.js", |