From ee79c196df6edfab7bf12886aa42f7c3cbf2e681 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 25 May 2021 11:16:53 +0800 Subject: [PATCH] Use prettier for formatting CSS code --- src/webui/www/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webui/www/package.json b/src/webui/www/package.json index e94124882..c90ae7ec9 100644 --- a/src/webui/www/package.json +++ b/src/webui/www/package.json @@ -6,12 +6,13 @@ "url": "https://github.com/qbittorrent/qBittorrent.git" }, "scripts": { - "format": "js-beautify private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js", + "format": "js-beautify private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && prettier --write **.css", "lint": "eslint private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js" }, "devDependencies": { "eslint": "*", "eslint-plugin-html": "*", - "js-beautify": "*" + "js-beautify": "*", + "prettier": "*" } }