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: override type-aware rules properly #585

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

ryoppippi
Copy link
Contributor

Description

fixes: #584

Linked Issues

Additional context

Copy link

netlify bot commented Aug 16, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit bfaed41
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/66c73c3a202d66000878edc8
😎 Deploy Preview https://deploy-preview-585--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.

rules: typeAwareRules,
rules: {
...typeAwareRules,
...objectPick(overrides, Object.keys(typeAwareRules)),
Copy link
Owner

Choose a reason for hiding this comment

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

I am not so sure about this approach, it feels to implicit. Maybe we could just have an additional overridesTypeAware option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice idea

@ryoppippi ryoppippi requested a review from antfu August 22, 2024 09:11
@antfu antfu merged commit 35f6763 into antfu:main Aug 22, 2024
8 checks passed
@ryoppippi ryoppippi deleted the feature/typescript branch August 22, 2024 23:19
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 rule in typescript is not overridden
2 participants