summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9c06e4998e5fea32cc384084cdbdbb2c3a6dbcc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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!"