From 17168a489392847794de0aed15fe395230a38261 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Sat, 6 Sep 2025 23:55:19 +0200 Subject: Initial commit This cleaned up and added linting/readme to the already created web app that I have been using to control vpn on my raspberry setup --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c06e49 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.PHONY: lint lint-html lint-css lint-go lint-js + +help: + @echo "Available lint commands:" + @echo " make lint - Run all linters" + @echo " make lint-html - Lint HTML files (html-validate)" + @echo " make lint-css - Lint CSS files (stylelint)" + @echo " make lint-go - Lint Go files (go vet + golangci-lint)" + @echo " make lint-js - Lint JavaScript files (eslint)" + +lint-html: + @echo "Linting HTML files..." + npx html-validate templates/*.html + +lint-css: + @echo "Linting CSS files..." + npx stylelint static/css/*.css + +lint-go: + @echo "Linting Go files..." + go vet ./... + golangci-lint run + +lint-js: + @echo "Linting JavaScript files..." + npx eslint static/js/*.js + +lint: lint-go lint-js lint-html lint-css + @echo "All linting complete!" -- cgit v1.2.3