commit 1460dc1: [Test] Fix Stylelint and npm warnings

moisseev moiseev at mezonplus.ru
Wed Apr 5 19:00:04 UTC 2023


Author: moisseev
Date: 2023-04-05 18:21:18 +0300
URL: https://github.com/rspamd/rspamd/commit/1460dc1283af0fa3aa5903f3f8939a283a5a074a (refs/pull/4453/head)

[Test] Fix Stylelint and npm warnings

---
 .drone.yml        | 2 +-
 .stylelintrc.json | 8 ++------
 package.json      | 3 +--
 3 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index 64256d635..e28c261f9 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -231,7 +231,7 @@ steps:
       event: [push, tag]
 
   - name: eslint
-    image: node:17-alpine
+    image: node:18-alpine
     pull: if-not-exists
     failure: ignore
     commands:
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 9e810e112..040ffaa9e 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -4,15 +4,11 @@
         {
             "files": ["**/*.html"],
             "customSyntax": "postcss-html"
-        },
-        {
-            "files": ["**/*.js"],
-            "customSyntax": "@stylelint/postcss-css-in-js"
         }
     ],
     "ignoreFiles": [
         "**/*.min.css",
-        "**/*.min.js",
+        "**/*.js",
         "interface/css/d3evolution.css",
         "interface/css/nprogress.css",
         "interface/css/prism.css"
@@ -22,7 +18,7 @@
         "at-rule-empty-line-before": null,
         "color-hex-length": null,
         "comment-empty-line-before": null,
-        "indentation": 4,
+        "media-feature-range-notation": "prefix",
         "number-leading-zero": null,
         "property-no-vendor-prefix": null,
         "rule-empty-line-before": null,
diff --git a/package.json b/package.json
index a406f3099..51860e148 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,7 @@
         "eslint": "*",
         "stylelint": ">=13.6.0",
         "stylelint-config-standard": "*",
-        "postcss-html": "*",
-        "@stylelint/postcss-css-in-js": "*"
+        "postcss-html": "*"
     },
     "eslintIgnore": [
         "*.min.js",


More information about the Commits mailing list