Skip to content

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.

@vercel
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