diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000..433b482 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1 @@ +*.min.css diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 0000000..0a08a15 --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["stylelint-config-standard"] +} diff --git a/package.json b/package.json index 05e48fc..792b133 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,9 @@ "electron-builder": "25.0.5", "husky": "^9.1.5", "lint-staged": "^15.2.10", - "prettier": "^3.3.3" + "prettier": "^3.3.3", + "stylelint": "^16.9.0", + "stylelint-config-standard": "^36.0.1" }, "scripts": { "start": "electron ./ --dev", @@ -52,9 +54,15 @@ "postinstall": "electron-builder install-app-deps", "pack-win": "cd out/win-unpacked && cp ../windows-install.bat ./ && 7za a sidenoder-$npm_package_version-win.zip ./* && mv sidenoder-$npm_package_version-win.zip ../", "pack-mac": "cd out/mac && tar -czf sidenoder-$npm_package_version-mac.tar.gz ./* && mv sidenoder-$npm_package_version-mac.tar.gz ../", - "prepare": "husky" + "prepare": "husky", + "stylelint:check": "stylelint \"**/*.css\"", + "stylelint:fix": "stylelint --fix \"**/*.css\"" }, "lint-staged": { + "**/*.css": [ + "stylelint --fix", + "stylelint" + ], "*.{js,html,twig}": [ "eslint --fix", "eslint" diff --git a/views/browse_include.twig b/views/browse_include.twig index be03060..fe23a26 100644 --- a/views/browse_include.twig +++ b/views/browse_include.twig @@ -10,12 +10,12 @@ - + @@ -104,7 +104,7 @@ class="row row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5" >