From: moisseev Date: Wed, 5 Apr 2023 15:21:18 +0000 (+0300) Subject: [Test] Fix Stylelint and npm warnings X-Git-Tag: 3.6~173^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4453%2Fhead;p=thirdparty%2Frspamd.git [Test] Fix Stylelint and npm warnings --- diff --git a/.drone.yml b/.drone.yml index 64256d6358..e28c261f9f 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 9e810e1122..040ffaa9e6 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 a406f30993..51860e1485 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",