seam: eslint.config.js has no ignore for the generated OpenAPI client #79
Labels
No labels
in-progress
in-review
ready-for-agent
seam-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
patrick/Polaris#79
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
frontend/eslint.config.js(frontend root, not owned by any feature track) has noignoresentry forsrc/app/core/api/generated/**. That directory is produced bynpm run api:genfrom the committedbackend/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.jsonhas a real, populated API surface (PH1.7 merged), runningnpm run api:gen && ng lintproduces ~210@typescript-eslint/consistent-indexed-object-styleerrors inside the generatedschema.d.tsfile itself — nothing in application code. This will hit every future frontend PR that importscomponents['schemas'][...]from the generated client (i.e. most of them from here on), and presumably CI'seslintstep in the PH0.6 pipeline once it runsapi:genbefore linting.Fix: add an
ignores: ['src/app/core/api/generated/**']entry (global ignore, or scoped to the**/*.tsblock) tofrontend/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 ofng lintfailures. 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.Already fixed — PR #77 (issue #44, merged) added exactly this
ignores: ['src/app/core/api/generated/**']entry toeslint.config.js. Confirmedng lintpasses clean onmainnow. Closing.