Repository navigation
Description
Parent
#333 (Spec: move lint to ESLint 10 on a flat config). First of two tickets; the second swaps the config.
What to build
The 17 places where the new presets will report something that has no autofix are fixed by hand, ahead of the config swap. Each fix is valid under today's ESLint 8 config, so yarn lint passes before and after. This is the only ticket of the spec that changes behaviour-bearing code, and it lands alone so the maintainer can review it apart from the mechanical swap.
Today's lint does not report these sites. The site list, file by file, is the resolution comment on #330. To see the reports themselves, lint the tree with the draft config on the throwaway branch prototype/eslint-flat-config.
The fixes, by rule:
no-case-declarations(6): wrap the case bodies in the page store's run module in braces.no-useless-assignment(5): remove the dead assignments, in the page store's alignment module and three shell main modules.@typescript-eslint/prefer-for-of(4): rewrite the indexed loops asfor...of.no-empty(1): put a comment in the emptycatchin the shell's model selection module that says why the error is ignored.@typescript-eslint/no-require-imports(1): convert therequirein the pack test to animport. If the test then cannot load that module, keep therequirewith an inline disable and a reason.
Out of this ticket: the ESLint config, package.json dependencies, autofixable reports, and the inline disable for the Alignment declaration merge. They belong to the swap ticket.
Acceptance criteria
- Each of the 17 sites listed in Which new preset reports are fixed and which rules are switched off #330 is fixed as described above, with no change in behaviour
- The pack test either uses an
import, or keeps itsrequirewith an inline disable and a stated reason -
yarn lintpasses with zero warnings on today's ESLint 8 config - The Vitest suite passes
-
yarn typecheck:baselinepasses; the baseline is rewritten only where a fix changes a diagnostic's fingerprint - No config, dependency or lockfile change
Blocked by
None (can start immediately).
Activity
Fix the 17 code sites the ESLint 10 presets report (#337)
jtklein-agents commentedon Nov 23, 2026
Merged in #337 into spec/333-eslint-10-flat-config. All 17 sites fixed; the ESLint 10 draft config reports none of them. isFasta kept its first-line-only behaviour (follow-up: #338).