mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-24 18:44:52 +08:00
Use stylelint for CSS linting
This commit is contained in:
parent
65bdc4cf43
commit
d8eac56f5e
18
src/webui/www/.stylelintrc.json
Normal file
18
src/webui/www/.stylelintrc.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"extends": "stylelint-config-standard",
|
||||||
|
"plugins": [
|
||||||
|
"stylelint-order"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"color-hex-length": null,
|
||||||
|
"comment-empty-line-before": null,
|
||||||
|
"comment-whitespace-inside": null,
|
||||||
|
"declaration-colon-newline-after": null,
|
||||||
|
"function-name-case": null,
|
||||||
|
"indentation": 4,
|
||||||
|
"length-zero-no-unit": null,
|
||||||
|
"no-descending-specificity": null,
|
||||||
|
"value-keyword-case": null,
|
||||||
|
"order/properties-alphabetical-order": true
|
||||||
|
}
|
||||||
|
}
|
@ -7,12 +7,15 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "js-beautify private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && prettier --write **.css",
|
"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"
|
"lint": "eslint private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint **/*.css"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "*",
|
"eslint": "*",
|
||||||
"eslint-plugin-html": "*",
|
"eslint-plugin-html": "*",
|
||||||
"js-beautify": "*",
|
"js-beautify": "*",
|
||||||
"prettier": "*"
|
"prettier": "*",
|
||||||
|
"stylelint": "*",
|
||||||
|
"stylelint-config-standard": "*",
|
||||||
|
"stylelint-order": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user