Skip to content

refactor: enable recommendedTypeChecked rules #1107

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

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

marcalexiei
Copy link
Contributor

@marcalexiei marcalexiei commented Dec 23, 2024

Last part of #1098

  • Replaced recommended typescript-eslint config with recommendedTypeChecked
  • contentlayer.config.ts → I tried to refine generated types but there are some upstream issues.
    I added a few comments with relevant information
  • src/components/CodeCompareSection.tsx → removed ternaries since the whole block is already wrapped in an if that check isPlayCodeCompare "truthiness" (line 40)
  • src/components/mdx/code.tsx → Simplified theme logic with a useMemo
  • src/components/mdx/youtube.tsx → Removed youTubePlaylistId, aspectRatio and skipTo props since they were not used.

Warning

Like happened in #1103 now also lint requires content layer so we have to build the project before running the lint task.
A new lint:ci script has been added alongside nextConfig eslint.ignoreDuringBuilds flag.

Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 10:09am

Copy link
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

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

Nice! Happy new year 2025!

@bluebill1049 bluebill1049 merged commit fe7d561 into react-hook-form:master Jan 3, 2025
5 checks passed
@marcalexiei marcalexiei deleted the ts-eslint-strict branch January 3, 2025 23:57
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