summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
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!"