From 37a1f73e1ca95f4a542b5ef24407a888f8d400f1 Mon Sep 17 00:00:00 2001 From: 0age <37939117+0age@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:06:39 -0800 Subject: [PATCH] fix CI linting --- .github/workflows/ci.yml | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1116be9..473b2a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,11 @@ jobs: - name: Check formatting run: pnpm prettier --check "src/**/!(*d).ts" - - name: Lint - run: pnpm eslint . --max-warnings 0 + - name: Lint backend + run: pnpm eslint src/ --max-warnings 0 + + - name: Lint frontend + run: cd frontend && pnpm eslint . --max-warnings 0 - name: Verify no tests were removed run: pnpm check-test-files diff --git a/package.json b/package.json index 9b71fbf..6577c50 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests src/__tests__/*.test.ts --maxWorkers=50% --maxConcurrency=7", "smoke-test": "node scripts/smoke-test.js", "smoke-test:precommit": "SMOKE_TEST_PORT=4000 node scripts/smoke-test.js", - "lint": "eslint .", + "lint": "eslint src/", "type-check": "tsc --noEmit -p tsconfig.lint.json", "type-check:staged": "tsc --noEmit --skipLibCheck --skipDefaultLibCheck --target ES2022 --module ESNext --moduleResolution bundler --strict --esModuleInterop --forceConsistentCasingInFileNames --baseUrl . --paths viem:['./src/types/viem.d.ts'] --paths webauthn-p256:['./src/types/webauthn-p256.d.ts'] src/types/fastify.d.ts", "type-check:staged-files": "tsc --noEmit --skipLibCheck --skipDefaultLibCheck",