From bd4fa63e0a18e9bb26ce9d9a28d62bc5afa11c09 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 11 Apr 2024 08:37:30 +0200 Subject: [PATCH] Update linting workflow and scripts --- .github/workflows/linting.yaml | 7 ++----- package.json | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index ab8b231..462c477 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -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 diff --git a/package.json b/package.json index 23a0735..2e9ea11 100644 --- a/package.json +++ b/package.json @@ -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" },