Skip to content

Commit 5a091a6

Browse files
committed
ci(hooks): align local lint with CI
## Summary Make the local pre-commit lint stage match CI and fix the test import order that CI caught. ## Changes - reorder builtin imports in the CLI regression test to satisfy eslint - run pnpm lint in pre-commit instead of package-scoped turbo lint ## Testing - pnpm lint - pnpm --filter @recallnet/codecontext-cli test - sh -n .husky/pre-commit
1 parent 6fb4668 commit 5a091a6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ pnpm install --frozen-lockfile --ignore-scripts 2>/dev/null || {
3636
echo "[2/10] Type-checking..."
3737
npx turbo typecheck
3838

39-
# ── Stage 3: Lint (affected packages) ───────────────────────────────
39+
# ── Stage 3: Lint (match CI scope) ──────────────────────────────────
4040
echo "[3/10] Linting..."
41-
npx turbo lint
41+
pnpm lint
4242

4343
# ── Stage 4: Build ──────────────────────────────────────────────────
4444
echo "[4/10] Building..."

packages/cli/test/files.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
2-
import { join } from "node:path";
32
import { tmpdir } from "node:os";
3+
import { join } from "node:path";
44

55
import { afterEach, describe, expect, it } from "vitest";
66

0 commit comments

Comments
 (0)