Skip to content

Adopt new toolchain warnings / lints - #150

Merged
vogelsgesang merged 2 commits into
mainfrom
query-graphs-3
Aug 23, 2026
Merged

vogelsgesang merged 2 commits into
mainfrom
query-graphs-3

Conversation

@vogelsgesang

@vogelsgesang vogelsgesang commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Adopt new TS 6.0 / ESLint 10 capabilities enabled by the toolchain bump (#149)

  • Enable verbatimModuleSyntax and noUncheckedSideEffectImports, now that moduleResolution is "bundler". Split all type-only imports into import type via the new @typescript-eslint/consistent-type-imports rule (autofixed). Scope verbatimModuleSyntax off for the ts-node override used to load webpack's *.config.ts files as CommonJS.
  • Switch to eslint-plugin-react-hooks's recommended flat config, which now bundles the former eslint-plugin-react-compiler rule set instead of just rules-of-hooks/exhaustive-deps.
  • Silence the one violation it surfaced: QueryGraphsApp.tsx reset tree via setState synchronously inside an effect when treeUrl was cleared, leading to a flicker. For now, I just silenced it. Mid-term, I will have to rethink integration with browser navigation.

…mp (#149)

- Enable verbatimModuleSyntax and noUncheckedSideEffectImports, now that
  moduleResolution is "bundler". Split all type-only imports into `import
  type` via the new @typescript-eslint/consistent-type-imports rule
  (autofixed). Scope verbatimModuleSyntax off for the ts-node override
  used to load webpack's *.config.ts files as CommonJS.
- Switch to eslint-plugin-react-hooks's `recommended` flat config, which
  now bundles the former eslint-plugin-react-compiler rule set instead of
  just rules-of-hooks/exhaustive-deps.
- Fix the one violation it surfaced: QueryGraphsApp.tsx reset `tree` via
  setState synchronously inside an effect when treeUrl was cleared.
  Deriving displayedTree from treeUrl at render time avoids the extra
  render pass and a one-frame stale-tree flicker.
@vogelsgesang vogelsgesang changed the title Adopt new TS 6.0 / ESLint 10 capabilities enabled by the toolchain bu… Adopt new TS 6.0 / ESLint 10 capabilities enabled by the toolchain bump Aug 23, 2026
@vogelsgesang vogelsgesang changed the title Adopt new TS 6.0 / ESLint 10 capabilities enabled by the toolchain bump Adopt new toolchain warnings / lints Aug 23, 2026
… splitting state

Keep `tree` as the single source of truth for what's displayed, rather than
introducing a derived `displayedTree` variable. Document the accepted
one-frame flicker this causes when treeUrl clears.
@vogelsgesang
vogelsgesang merged commit 8dfa772 into main Aug 23, 2026
5 checks passed
@vogelsgesang
vogelsgesang deleted the query-graphs-3 branch August 23, 2026 04:43
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.

1 participant