From e3eacf2bf76c179e324fe69142c3d1072f7ba271 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 21 Jan 2025 14:45:17 +0800 Subject: [PATCH] WebUI: migrate stylelint config file format From https://stylelint.io/user-guide/configure : >Stylelint currently supports other configuration locations and formats, but we may remove these >in the future: >... >.stylelintrc.json file --- src/webui/www/.stylelintrc.json | 19 ------------------- src/webui/www/stylelint.config.mjs | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 src/webui/www/.stylelintrc.json create mode 100644 src/webui/www/stylelint.config.mjs diff --git a/src/webui/www/.stylelintrc.json b/src/webui/www/.stylelintrc.json deleted file mode 100644 index 55324a0dd..000000000 --- a/src/webui/www/.stylelintrc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "stylelint-config-standard", - "plugins": [ - "stylelint-order" - ], - "ignoreFiles": ["private/css/lib/*.css"], - "rules": { - "color-hex-length": null, - "comment-empty-line-before": null, - "comment-whitespace-inside": null, - "function-name-case": null, - "length-zero-no-unit": null, - "no-descending-specificity": null, - "order/properties-alphabetical-order": true, - "selector-class-pattern": null, - "selector-id-pattern": null, - "value-keyword-case": null - } -} diff --git a/src/webui/www/stylelint.config.mjs b/src/webui/www/stylelint.config.mjs new file mode 100644 index 000000000..712f9f844 --- /dev/null +++ b/src/webui/www/stylelint.config.mjs @@ -0,0 +1,19 @@ +export default { + extends: "stylelint-config-standard", + plugins: [ + "stylelint-order" + ], + ignoreFiles: ["private/css/lib/*.css"], + rules: { + "color-hex-length": null, + "comment-empty-line-before": null, + "comment-whitespace-inside": null, + "function-name-case": null, + "length-zero-no-unit": null, + "no-descending-specificity": null, + "order/properties-alphabetical-order": true, + "selector-class-pattern": null, + "selector-id-pattern": null, + "value-keyword-case": null + } +};