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

refactor: enable recommendedTypeChecked rules #1107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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