Skip to content

Fix the 17 code sites the ESLint 10 presets report #335

Closed

Description

@jtklein-agents

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 as for...of.
  • no-empty (1): put a comment in the empty catch in the shell's model selection module that says why the error is ignored.
  • @typescript-eslint/no-require-imports (1): convert the require in the pack test to an import. If the test then cannot load that module, keep the require with 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 its require with an inline disable and a stated reason
  • yarn lint passes with zero warnings on today's ESLint 8 config
  • The Vitest suite passes
  • yarn typecheck:baseline passes; 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

  1. added
    ready-for-agent
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 23, 2026
    6580b66
  3. jtklein-agents commented on Nov 23, 2026

    @jtklein-agents
    OwnerAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions