Skip to content

Conversation

@critesjm
Copy link

Summary

  • fix "module" setting error in typescript configuration
  • make eslint recognize and lint typescript files
    • fixes inline eslint errors that appear in-editor
  • copy over global island import declaration from @hubspot/cms-components
  • convert one of the .jsx partials to .tsx to provide working example
    • added prop types to clean up errors
    • use Number instead of parseInt because parseInt doesn't like number for its first argument
    • modernize array creation/fill

Happy to make changes or break this up as requested. It's mostly fixing hurdles I've been hitting trying to set up a CMS React project using TS.

Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
teach eslint how to parse typescript files. configuration taken directly from: https://typescript-eslint.io/getting-started/legacy-eslint-setup
copied directly from global types in @hubspot/cms-components
Signed-off-by: Josh Crites <josh@getwyz.com>
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