mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00: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": {
|
||||
"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": {
|
||||
"eslint": "*",
|
||||
"eslint-plugin-html": "*",
|
||||
"js-beautify": "*",
|
||||
"prettier": "*"
|
||||
"prettier": "*",
|
||||
"stylelint": "*",
|
||||
"stylelint-config-standard": "*",
|
||||
"stylelint-order": "*"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user