You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade to ESLint 10 (blocked on eslint-config) #1627
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: LowIsolated change, about 2 hours or lessPriority: LowNice to have, cosmetic or speculativeUpstreamThe fix belongs in a @douglasneuroinformatics/* package or a third-party dependency
eslint is held at 9.39.x (9.39.5, the last 9.x release, which npm now marks as unsupported) by the dependency update on the deps branch. The newest release eligible under the repo's 7-day minimumReleaseAge on 2026-10-04 was 10.11.0.
Why it was not upgraded
@douglasneuroinformatics/eslint-config@6.0.0 peers eslint 9.x. Its plugins are on their ESLint 9 lines: @eslint/js ^9, typescript-eslint, eslint-plugin-react, eslint-plugin-import, eslint-plugin-jsdoc, eslint-plugin-astro and the rest.
What is required
An eslint-config release that peers ESLint 10, with plugin versions that support it.
Bump eslint, run pnpm lint, and read every file eslint --fix rewrites. Moving from 9.23 to 9.39 already removed now-unused no-var disable directives in react-core.
Still blocked on main (d86740e). @douglasneuroinformatics/eslint-config 6.0.0 is still the latest release. Its own peer range is the easy part. The real blockers are three third-party plugins it bundles.
What actually blocks it
Most of the plugins the issue lists already accept ESLint 10. Even the floors of eslint-config's current ranges for typescript-eslint (8.58.2) and eslint-plugin-perfectionist (5.8.0) peer ^10. eslint-plugin-astro 1.7 (>=8.57.0) and eslint-plugin-jsonc 2.x (>=6.0.0) allow it too. @eslint/js, eslint-plugin-jsdoc and eslint-plugin-svelte need a major bump (10.0.1, 65.x, 3.x). eslint-plugin-astro 2.0 and later require ESLint 10. Only three plugins have no release that peers ESLint 10:
I ran ESLint 10.13.0 on scratch files with these three force-installed, using every rule this repo takes from them. import/no-default-export crashes:
TypeError: Error while loading rule 'import/no-default-export': Cannot use 'in' operator to search for 'sourceType' in undefined
The plugin's lib/core/sourceType.js reads context.parserOptions, which ESLint 10 removed. #3230 changes that file. eslint.config.js:205 turns the rule on for the web and react-core components, so overriding the peer range alone would make pnpm lint crash. The rest ran without errors:
import/no-duplicates (including --fix), import/extensions, import/exports-last and import/consistent-type-specifier-style
react's recommended set, plus function-component-definition and jsx-no-literals
jsx-a11y's recommended set
react only calls the removed context.getFilename() when version is 'detect', and eslint.config.js:121 pins it to '18'.
Options for the next eslint-config major
Wait for the import release. It fixes the only crash. eslint-config can then peer eslint ^10 and keep react and jsx-a11y at their current versions, with a peer warning. The catch: react's maintainer says "until the peer dep range is updated, one should not attempt to use eslint 10 with this plugin" (ESLint v10 compatibility jsx-eslint/eslint-plugin-react#3977).
Switch import and jsx-a11y to forks.eslint-plugin-import-x 4.17.1 peers ^10 and has all five import rules used here. eslint-plugin-jsx-a11y-x 0.2.0 peers ^9 || ^10, and eslint-plugin-astro 3.2.1 already lists it as an optional peer. Register both under the existing import and jsx-a11y keys. Under new keys, every rule name in the repo has to be renamed:
Replacing react is not an option.@eslint-react/eslint-plugin has no jsx-no-literals and no function-component-definition, and react/jsx-no-literals enforces the translation rule (apps/web/AGENTS.md:150).
I recommend option 1, falling back to import-x if the import release keeps slipping. ESLint 9 has been EOL since 2026-08-06, but it only runs in dev and CI, so Low priority still fits. Keep typescript 6.0.x in the new major's peers. typescript-eslint 8.72.0 still caps TypeScript at <6.1.0, so tying this to #1628 would hold ESLint 10 behind TypeScript 7.
@eslint/js 10 adds no-unassigned-vars, no-useless-assignment and preserve-caught-error to recommended, and eslint-config spreads that set into every JS and TS file. I ran ESLint 10.13.0 with those three rules over every JS and TS file on main. It reports one error: in the ZodError branch, packages/release-info/src/index.ts:56 throws a new Error without { cause: err }. preserve-caught-error only offers suggestions, so --fix will not change this line.
Nothing else in the migration guide applies. main has no eslint-env comments, and no-shadow-restricted-names reports nothing. The only config is the root eslint.config.js, which the new per-file lookup still finds. The local odc rules already use context.filename.
Tests: in packages/release-info/src/__tests__/index.test.ts, assert that the parse error's cause is the ZodError. Nothing else changes runtime behaviour, so no new e2e test is needed. Run pnpm lint, pnpm test:coverage and pnpm test:e2e. Also check by hand that react/jsx-no-literals and import/no-default-export still report errors in apps/web/src/components, because those two rules enforce repo rules.
Triage note written with Claude Code. Code references point at main @ d86740e.
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: LowIsolated change, about 2 hours or lessPriority: LowNice to have, cosmetic or speculativeUpstreamThe fix belongs in a @douglasneuroinformatics/* package or a third-party dependency
Activity
joshunrau commentedon Oct 26, 2026
Still blocked on
main(d86740e).@douglasneuroinformatics/eslint-config6.0.0 is still the latest release. Its own peer range is the easy part. The real blockers are three third-party plugins it bundles.What actually blocks it
Most of the plugins the issue lists already accept ESLint 10. Even the floors of eslint-config's current ranges for
typescript-eslint(8.58.2) andeslint-plugin-perfectionist(5.8.0) peer^10.eslint-plugin-astro1.7 (>=8.57.0) andeslint-plugin-jsonc2.x (>=6.0.0) allow it too.@eslint/js,eslint-plugin-jsdocandeslint-plugin-svelteneed a major bump (10.0.1, 65.x, 3.x).eslint-plugin-astro2.0 and later require ESLint 10. Only three plugins have no release that peers ESLint 10:eslint-plugin-import2.32.0. The fix was merged in ESLint v10 support import-js/eslint-plugin-import#3230 on 2026-06-29 but has not been released. The release is tracked in Cut new release import-js/eslint-plugin-import#3278.eslint-plugin-react7.37.5. See ESLint v10 compatibility jsx-eslint/eslint-plugin-react#3977. The fix PRs fix: complete ESLint 10 compatibility jsx-eslint/eslint-plugin-react#4022 and Fix ESLint v10 RuleContext API removal (follow-up to #3972) jsx-eslint/eslint-plugin-react#3979 are open.eslint-plugin-jsx-a11y6.10.2. See [Feature] Support for ESLint v10 jsx-eslint/eslint-plugin-jsx-a11y#1075. The fix PRs [New] eslint 10 support jsx-eslint/eslint-plugin-jsx-a11y#1079 and [New] Add ESLint 10 support jsx-eslint/eslint-plugin-jsx-a11y#1081 are open.I ran ESLint 10.13.0 on scratch files with these three force-installed, using every rule this repo takes from them.
import/no-default-exportcrashes:The plugin's
lib/core/sourceType.jsreadscontext.parserOptions, which ESLint 10 removed. #3230 changes that file.eslint.config.js:205turns the rule on for the web and react-core components, so overriding the peer range alone would makepnpm lintcrash. The rest ran without errors:import/no-duplicates(including--fix),import/extensions,import/exports-lastandimport/consistent-type-specifier-stylefunction-component-definitionandjsx-no-literalsreact only calls the removed
context.getFilename()whenversionis'detect', andeslint.config.js:121pins it to'18'.Options for the next eslint-config major
eslint ^10and keep react and jsx-a11y at their current versions, with a peer warning. The catch: react's maintainer says "until the peer dep range is updated, one should not attempt to use eslint 10 with this plugin" (ESLint v10 compatibility jsx-eslint/eslint-plugin-react#3977).eslint-plugin-import-x4.17.1 peers^10and has all five import rules used here.eslint-plugin-jsx-a11y-x0.2.0 peers^9 || ^10, andeslint-plugin-astro3.2.1 already lists it as an optional peer. Register both under the existingimportandjsx-a11ykeys. Under new keys, every rule name in the repo has to be renamed:eslint.config.js:137,154,205packages/schemas/srcAGENTS.md:202,apps/web/AGENTS.md:167,packages/react-core/AGENTS.md:9,packages/schemas/AGENTS.md:25,28,storybook/AGENTS.md:48,.agents/skills/odc-done/SKILL.md:25and.agents/skills/odc-frontend/SKILL.md:31@eslint-react/eslint-pluginhas nojsx-no-literalsand nofunction-component-definition, andreact/jsx-no-literalsenforces the translation rule (apps/web/AGENTS.md:150).I recommend option 1, falling back to
import-xif the import release keeps slipping. ESLint 9 has been EOL since 2026-08-06, but it only runs in dev and CI, so Low priority still fits. Keeptypescript 6.0.xin the new major's peers.typescript-eslint8.72.0 still caps TypeScript at<6.1.0, so tying this to #1628 would hold ESLint 10 behind TypeScript 7.Repo side, once that release exists
package.json:38and:46. Both are literal versions, but the root rule wantscatalog:entries. Land this after build: upgrade dependencies held back by breaking changes #1660, which rewrites the same devDependency block.@eslint/js10 addsno-unassigned-vars,no-useless-assignmentandpreserve-caught-errortorecommended, and eslint-config spreads that set into every JS and TS file. I ran ESLint 10.13.0 with those three rules over every JS and TS file onmain. It reports one error: in theZodErrorbranch,packages/release-info/src/index.ts:56throws a newErrorwithout{ cause: err }.preserve-caught-erroronly offers suggestions, so--fixwill not change this line.mainhas noeslint-envcomments, andno-shadow-restricted-namesreports nothing. The only config is the rooteslint.config.js, which the new per-file lookup still finds. The localodcrules already usecontext.filename.packages/release-info/src/__tests__/index.test.ts, assert that the parse error'scauseis theZodError. Nothing else changes runtime behaviour, so no new e2e test is needed. Runpnpm lint,pnpm test:coverageandpnpm test:e2e. Also check by hand thatreact/jsx-no-literalsandimport/no-default-exportstill report errors inapps/web/src/components, because those two rules enforce repo rules.Triage note written with Claude Code. Code references point at
main@d86740e.