Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate all remaining JS files to TS, tweak ESLint and Typescript configuration #3141

Merged
merged 6 commits into from
Jan 25, 2024

Conversation

grahamalama
Copy link
Contributor

This PR:

  • Tweaks our ESLint and Typescript configuration to be more line with the Vite and Vitest examples
  • Migrates all remaining {js, jsx} files to {ts, tsx}
  • Removes some cruft

In playing around with this configuration, I discovered that we're missing a lot of the type safety that Typescript should provide as well as some important React rules. I turned of some ESLint rules in this PR with the plan of re-enabling them in future PRs. See #3140 and #2132

Copy link
Contributor

@alexcottner alexcottner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛳️

Use esnext consistently in tsconfig.json

Add vitest globals to tsconfig types

Include src and test directories in tsconfig

Split tsconfig into separate files
@grahamalama grahamalama merged commit 539072b into master Jan 25, 2024
6 checks passed
@grahamalama grahamalama deleted the reconfig branch January 25, 2024 20:41
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.

2 participants