mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
The pre-commit hook ran `pnpm exec eslint --fix` from the repo root on every
staged JS/TS file. ESLint 10 looks up the config from each file's directory,
so a frontend-only batch was linted, but one worker/, shared/, packages/ or
scripts/ path in the batch has no eslint.config.* above it: ESLint aborts the
whole run ("couldn't find an eslint.config.* file", exit 2) before fixing
anything, frontend files included. `|| true` hid that and the hook printed ok.
Run ESLint from inside frontend/ on the frontend paths only, prefix stripped,
the same run `pnpm lint` does in pre-push and CI. Files outside frontend/ are
still formatted by prettier, never handed to ESLint. --no-warn-ignored keeps
config-ignored files (vite.config.ts, public/**) quiet. A non-zero ESLint exit
is now reported instead of swallowed; it still does not block the commit.
Regressed in ff428deb (pnpm migration), which replaced the per-package run
added in 928befec with a root-level one.