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",