From b5d1ce06505596ac4a99b7bc78551202f70ef3f8 Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Thu, 1 Feb 2024 00:12:10 +0700 Subject: [PATCH] chore(taskfile): add lint tasks (#138) --- Taskfile.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index a74975d60..9e9f0f73c 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -72,6 +72,16 @@ tasks: cmds: - npx --yes prisma migrate diff --from-empty --to-schema-datasource prisma/schema.prisma --script > internal/repository/prisma/dbsqlc/schema.sql - go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.24.0 generate --file internal/repository/prisma/dbsqlc/sqlc.yaml + lint: + cmds: + - task: lint-go + - task: lint-frontend + lint-go: + cmds: + - golangci-lint run ./... --config .golangci.yml + lint-frontend: + cmds: + - cd frontend/app/ && pnpm run lint:check kill-query-engines: cmds: - ps -A | grep 'prisma-query-engine-darwin-arm64' | grep -v grep | awk '{print $1}' | xargs kill -9 $1