aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-11 11:59:10 +0700
committerShulhan <ms@kilabit.info>2023-11-11 11:59:10 +0700
commit642d46804ec322b06ab46f27f8b8663764ae4e9a (patch)
tree57738c8c44cd90550121f4b09a6e4830350e307c /Makefile
parentbddf2a866c38792fa8be5c657e23728c0f5b38e6 (diff)
downloadgorankusu-642d46804ec322b06ab46f27f8b8663764ae4e9a.tar.xz
_www: setup eslint for linting TypeScript files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c92682e..1ee608c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,16 @@
## SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
## SPDX-License-Identifier: GPL-3.0-or-later
-.PHONY: all dev
-
-all:
+.PHONY: all
+all: lint
go run ./internal/cmd/trunks build
CGO_ENABLED=1 go test -v -race ./...
-golangci-lint run ./...
+.PHONY: lint
+lint:
+ cd _www && npx eslint --fix .
+
+.PHONY: dev
dev:
go run ./internal/cmd/trunks