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

fix: seperate the type aware rules for react #622

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PranavSK
Copy link

@PranavSK PranavSK commented Oct 13, 2024

Description

This PR seperates the configs for typeaware react rules to avoid issues faced where eslint complains about non ts files not being included in the tsconfig.json.

The relevant test are added as part of PR #619

Linked Issues

closes #618

Additional context

Copy link

netlify bot commented Oct 13, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit 3001e6b
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/6711ac65af057d00086dffc4
😎 Deploy Preview https://deploy-preview-622--melodious-froyo-4871f8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu
Copy link
Owner

antfu commented Oct 16, 2024

I am not sure if the complexity is worth it - it's a bit too specific and duplicates the logics that would be hard to maintain in the long term.

avoid issues faced where eslint complains about non ts files not

Maybe instead we should read tsconfig or having an option to exclude some files from type aware rules?

Copy link
Owner

@antfu antfu left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Type aware setting affects linting of js files when react is also enabled
2 participants