Update lint scripts

This commit is contained in:
Ramon Wenger 2024-07-31 15:44:15 +02:00 committed by Christian Cueni
parent dff81c0a6b
commit cea47b4f61
2 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@
"cypress:open": "cypress open", "cypress:open": "cypress open",
"dev": "concurrently \"vite\" \"npm run codegen:watch\"", "dev": "concurrently \"vite\" \"npm run codegen:watch\"",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "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": "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", "tailwind": "tailwindcss -i tailwind.css -o ../server/vbv_lernwelt/static/css/tailwind.css --watch",
"test": "vitest run", "test": "vitest run",
"typecheck": "npm run codegen && vue-tsc --noEmit -p tsconfig.app.json --composite false", "typecheck": "npm run codegen && vue-tsc --noEmit -p tsconfig.app.json --composite false",

View File

@ -7,7 +7,7 @@ echo 'prettier:check'
(cd client && npm run prettier:check) (cd client && npm run prettier:check)
echo 'lint and typecheck' 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' echo 'python ufmt check'
ufmt check server ufmt check server