]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add PostCSS syntaxes for embedded styles
authormoisseev <moiseev@mezonplus.ru>
Sun, 14 Nov 2021 17:39:52 +0000 (20:39 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 14 Nov 2021 17:39:52 +0000 (20:39 +0300)
(required since Stylelint 14.0.0)

.stylelintrc.json
package.json

index be1ea613f936b936e647c0c2e65ae1402ff2e83f..ad79b181a97df0eb916999bb76446b0c7d283c51 100644 (file)
@@ -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",
index 076e7445f6ed4ccd4ea269242ddd848cd7ec9373..57a46430ee6c57c74510e65730bd9a4380f2a623 100644 (file)
@@ -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",