Skip to content

Commit

Permalink
Merge pull request qbittorrent#15017 from Chocobo1/css_formatting
Browse files Browse the repository at this point in the history
Format and lint CSS code
  • Loading branch information
Chocobo1 committed May 27, 2021
2 parents 0c71756 + af49a4d commit 3b4bf90
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 328 deletions.
18 changes: 18 additions & 0 deletions src/webui/www/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -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
}
}
10 changes: 7 additions & 3 deletions src/webui/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
"url": "https://github.com/qbittorrent/qBittorrent.git"
},
"scripts": {
"format": "js-beautify 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"
"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 && stylelint **/*.css"
},
"devDependencies": {
"eslint": "*",
"eslint-plugin-html": "*",
"js-beautify": "*"
"js-beautify": "*",
"prettier": "*",
"stylelint": "*",
"stylelint-config-standard": "*",
"stylelint-order": "*"
}
}
1 change: 0 additions & 1 deletion src/webui/www/private/css/Core.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Notes:
margin-top: 2px;
}


/* Theme Specific Adjustments to Default Plugin Styles
---------------------------------------------------------------- */

Expand Down
Loading

0 comments on commit 3b4bf90

Please sign in to comment.