Update linting workflow and scripts

This commit is contained in:
Bart van der Braak 2024-04-11 08:37:30 +02:00
parent a6c4cb56f3
commit bd4fa63e0a
2 changed files with 3 additions and 5 deletions

View file

@ -31,8 +31,5 @@ jobs:
- name: Install Node.js dependencies
run: pnpm install --frozen-lockfile
- name: Run linters
uses: wearerequired/lint-action@v2.3.0
with:
eslint: true
prettier: true
- name: Run linting
run: pnpm run lint-ci

View file

@ -10,6 +10,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"lint-ci": "prettier --check . && eslint . --no-fix --max-warnings=0",
"format": "prettier --write .",
"prepare": "npx husky && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},