CI: ESLint runs without --max-warnings, so new react-hooks/exhaustive-deps warnings never surface #97

Closed
opened 2026-09-12 01:57:45 -04:00 by jared · 0 comments
Owner

Location: package.jsoncheck:eslint: "eslint src/*", .gitea/workflows/ci.yml comment "eslint gates on errors only"

Problem

This is documented as intentional so the existing no-explicit-any warnings stay informational, but the side effect is that every other warning-level rule is also invisible in CI — including react-hooks/exhaustive-deps, which is the rule most likely to flag the stale-closure and missing-cleanup bugs found in this audit (#31 soundboard stale count, #47 profile fetch clobber).

Suggested fix

Either promote react-hooks/exhaustive-deps and react-hooks/rules-of-hooks to error in eslint.config.mjs (fixing or explicitly disabling the current hits), or run eslint --max-warnings <current count> so the count can only go down. Leave no-explicit-any as a warning.


Filed from the September 2026 client audit (CI pipeline review, branch lotus @ 4bea4895).

**Location:** `package.json` → `check:eslint: "eslint src/*"`, `.gitea/workflows/ci.yml` comment "eslint gates on errors only" ### Problem This is documented as intentional so the existing `no-explicit-any` warnings stay informational, but the side effect is that every other warning-level rule is also invisible in CI — including `react-hooks/exhaustive-deps`, which is the rule most likely to flag the stale-closure and missing-cleanup bugs found in this audit (#31 soundboard stale count, #47 profile fetch clobber). ### Suggested fix Either promote `react-hooks/exhaustive-deps` and `react-hooks/rules-of-hooks` to `error` in `eslint.config.mjs` (fixing or explicitly disabling the current hits), or run `eslint --max-warnings <current count>` so the count can only go down. Leave `no-explicit-any` as a warning. --- _Filed from the September 2026 client audit (CI pipeline review, branch `lotus` @ 4bea4895)._
jared added this to the Audit 2026-09 · Medium & Low milestone 2026-09-12 01:57:45 -04:00
jared added the priority: lowtech-debtarea: build-ci labels 2026-09-12 01:57:45 -04:00
jared self-assigned this 2026-09-12 01:57:45 -04:00
jared closed this issue 2026-09-12 20:29:12 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#97