seam: eslint.config.js has no ignore for the generated OpenAPI client #79

Closed
opened 2026-09-11 13:23:00 +00:00 by bart · 1 comment
Collaborator

frontend/eslint.config.js (frontend root, not owned by any feature track) has no ignores entry for src/app/core/api/generated/**. That directory is produced by npm run api:gen from the committed backend/openapi.json (docs/12-implementation-plan.md: "the generated output (core/api/generated/) is git-ignored and produced on npm ci/CI, so only the spec is versioned").

Now that backend/openapi.json has a real, populated API surface (PH1.7 merged), running npm run api:gen && ng lint produces ~210 @typescript-eslint/consistent-indexed-object-style errors inside the generated schema.d.ts file itself — nothing in application code. This will hit every future frontend PR that imports components['schemas'][...] from the generated client (i.e. most of them from here on), and presumably CI's eslint step in the PH0.6 pipeline once it runs api:gen before linting.

Fix: add an ignores: ['src/app/core/api/generated/**'] entry (global ignore, or scoped to the **/*.ts block) to frontend/eslint.config.js.

Found while building #16 (T-A frontend): all frontend/src/app/features/** code lints clean on its own; the generated file is the only source of ng lint failures. Filing as a seam request per CLAUDE.md ("don't touch files outside owned paths") rather than widening #16 or editing a file that pre-existed my session.

`frontend/eslint.config.js` (frontend root, not owned by any feature track) has no `ignores` entry for `src/app/core/api/generated/**`. That directory is produced by `npm run api:gen` from the committed `backend/openapi.json` (docs/12-implementation-plan.md: "the generated output (core/api/generated/) is git-ignored and produced on npm ci/CI, so only the spec is versioned"). Now that `backend/openapi.json` has a real, populated API surface (PH1.7 merged), running `npm run api:gen && ng lint` produces ~210 `@typescript-eslint/consistent-indexed-object-style` errors inside the generated `schema.d.ts` file itself — nothing in application code. This will hit every future frontend PR that imports `components['schemas'][...]` from the generated client (i.e. most of them from here on), and presumably CI's `eslint` step in the PH0.6 pipeline once it runs `api:gen` before linting. **Fix**: add an `ignores: ['src/app/core/api/generated/**']` entry (global ignore, or scoped to the `**/*.ts` block) to `frontend/eslint.config.js`. Found while building #16 (T-A frontend): all `frontend/src/app/features/**` code lints clean on its own; the generated file is the only source of `ng lint` failures. Filing as a seam request per CLAUDE.md ("don't touch files outside owned paths") rather than widening #16 or editing a file that pre-existed my session.
Author
Collaborator

Already fixed — PR #77 (issue #44, merged) added exactly this ignores: ['src/app/core/api/generated/**'] entry to eslint.config.js. Confirmed ng lint passes clean on main now. Closing.

Already fixed — PR #77 (issue #44, merged) added exactly this `ignores: ['src/app/core/api/generated/**']` entry to `eslint.config.js`. Confirmed `ng lint` passes clean on `main` now. Closing.
bart closed this issue 2026-09-11 13:28:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
patrick/Polaris#79
No description provided.