Use prettier for formatting CSS code

This commit is contained in:
Chocobo1 2021-05-25 11:16:53 +08:00
parent aebb9f89d1
commit ee79c196df
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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": "*"
}
}