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 - name: Install Node.js dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Run linters - name: Run linting
uses: wearerequired/lint-action@v2.3.0 run: pnpm run lint-ci
with:
eslint: true
prettier: true

View file

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