Skip to content

Move lint to ESLint 10 on a flat config - #512

Merged
jtklein merged 3 commits into
AntonelliLab:masterfrom
jtklein-agents:spec/333-eslint-10-flat-config
Nov 23, 2026
Merged

jtklein merged 3 commits into
AntonelliLab:masterfrom
jtklein-agents:spec/333-eslint-10-flat-config

Conversation

@jtklein-agents

@jtklein-agents jtklein-agents commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Moves yarn lint from ESLint 8 with eslint-config-react-app (unmaintained) to ESLint 10 on one flat config. Command, scripts and CI workflows are unchanged.

.eslintrc.cjs  (react-app preset, ESLint 8)
        │
        ▼
eslint.config.js (ESLint 10)
├── @eslint/js + typescript-eslint recommended/stylistic
├── per-process globals (main, preload, page, tests, configs)
├── repo style: @stylistic (indent, comma-dangle, space-in-parens, multiline-ternary, semi, quotes), import-x, lodash
└── react-hooks recommended (page)

Two commits:

  • 17 hand fixes ahead of the swap (no-case-declarations, no-useless-assignment, prefer-for-of, no-empty, no-require-imports).
  • The config swap, dependency changes, autofixes, and src/lint.test.ts, which lints known-bad fixtures through the real config.

Evidence

  • Before: import-x/no-cycle reported nothing on a real TypeScript cycle; semicolons and quotes were unchecked.
    After: src/lint.test.ts asserts reports for import-x/no-cycle, react-hooks/rules-of-hooks, @stylistic/semi, @stylistic/quotes.
yarn lint                -> 0 problems, --max-warnings 0
yarn typecheck:baseline  -> pass
vitest run               -> 475 passed
CI (lint, eslint, e2e x3, release x3, docs-e2e) -> green

Merge Danger

Door: two-way

Blast Radius: lint and dev tooling; production code changes are limited to the hand fixes, whitespace and quotes, and three inline disable comments.

🤖 Generated with Claude Code

jtklein-agents and others added 2 commits November 23, 2026 08:36
* Fix the 17 code sites the ESLint 10 presets report

Closes #335

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Keep isFasta behaviour unchanged: only the first line counts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace .eslintrc.cjs and eslint-config-react-app with eslint.config.js, make every plugin a direct dev dependency, autofix the new style reports, and add a test that lints known-bad fixtures through the real config.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtklein
jtklein merged commit 259ca86 into AntonelliLab:master Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants