steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
13.22k stars 1.08k forks source link

Miscellaneous fixes #321

Closed haydenbleasel closed 8 months ago

haydenbleasel commented 8 months ago

Fixed a whole bunch of issues (some semantic, some functional), including:

  1. Import ordering and declaring type imports
  2. Fixing comments spacing and wrapping
  3. Adding unicode flag for regexes
  4. Fix dependency cycles
  5. Remove useless fragments
  6. Use nullish coalescing operator
  7. Use array destructuring
  8. Add missing displayNames for components utilising forwardRef
  9. Add optional chaining for handler functions
  10. Mark component props as readonly
  11. Add FC definitions for functional components to improve type defs
  12. Fix conflicting variable names

Aimed to make my changes as objective as possible without any styling preferences.

vercel[bot] commented 8 months ago

@haydenbleasel is attempting to deploy a commit to the Elegance Team on Vercel.

A member of the Team first needs to authorize it.

andrewdoro commented 8 months ago

🔥