From cea47b4f614e882ff425f23d768c5d2146b58d48 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2024 15:44:15 +0200 Subject: [PATCH] Update lint scripts --- client/package.json | 3 ++- git-pre-push.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index 72a3765f..f5296e99 100644 --- a/client/package.json +++ b/client/package.json @@ -10,8 +10,9 @@ "cypress:open": "cypress open", "dev": "concurrently \"vite\" \"npm run codegen:watch\"", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", + "lint:errors": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --quiet --ignore-path .gitignore", "prettier": "prettier . --write", - "prettier:check": "prettier . --check", + "prettier:check": "prettier . --check --ignore-unknown", "tailwind": "tailwindcss -i tailwind.css -o ../server/vbv_lernwelt/static/css/tailwind.css --watch", "test": "vitest run", "typecheck": "npm run codegen && vue-tsc --noEmit -p tsconfig.app.json --composite false", diff --git a/git-pre-push.sh b/git-pre-push.sh index 8cb53b69..fcf48120 100755 --- a/git-pre-push.sh +++ b/git-pre-push.sh @@ -7,7 +7,7 @@ echo 'prettier:check' (cd client && npm run prettier:check) echo 'lint and typecheck' -(cd client && npm run lint && npm run typecheck) +(cd client && npm run lint:errors && npm run typecheck) echo 'python ufmt check' ufmt check server