commit 8d33c66: [Test] Add PostCSS syntaxes for embedded styles

moisseev moiseev at mezonplus.ru
Sun Nov 14 21:14:04 UTC 2021


Author: moisseev
Date: 2021-11-14 20:39:52 +0300
URL: https://github.com/rspamd/rspamd/commit/8d33c6634f3bd79c4bf42c869cd0d284a2fb3312

[Test] Add PostCSS syntaxes for embedded styles
(required since Stylelint 14.0.0)

---
 .stylelintrc.json | 10 ++++++++++
 package.json      |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)

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",


More information about the Commits mailing list