Skip to content

Migrate koenig-lexical to TypeScript#1807

Open
kevinansfield wants to merge 2 commits into
mainfrom
ts/koenig-lexical-cleanup
Open

Migrate koenig-lexical to TypeScript#1807
kevinansfield wants to merge 2 commits into
mainfrom
ts/koenig-lexical-cleanup

Conversation

@kevinansfield

@kevinansfield kevinansfield commented Mar 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Rename all .js/.jsx files to .ts/.tsx across src/, test/, and demo/
  • Add TypeScript configuration (tsconfig.json, eslint.config.js with @typescript-eslint)
  • Add type annotations throughout: component props, hooks, utility functions, Lexical node types
  • Replace deprecated tseslint.config() with defineConfig() from eslint/config
  • Create proper interfaces for untyped dependencies (Emoji for emoji-mart, SimpleMDEInstance/CodeMirrorInstance for kg-simplemde)
  • Add test/types.d.ts with Window augmentation for Lexical editor in e2e browser context
  • Remove all eslint-disable comments except intentional react-hooks/exhaustive-deps for mount-only effects

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

3 participants