-
-
Notifications
You must be signed in to change notification settings - Fork 125
feat(attw): add ignoreRules option to filter specified rule
#665
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
Conversation
✅ Deploy Preview for tsdown ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an ignoreRules configuration option to the ATTW (Are The Types Wrong) feature, allowing users to selectively filter out specific problem types when checking package type correctness. The implementation maps ProblemKind enum values to their corresponding CLI flag names and validates user input against allowed values.
- Added
problemFlagsconstant mapping ProblemKind types to string identifiers - Extended
AttwOptionsinterface withignoreRulesoption accepting an array of problem flag strings - Implemented validation and filtering logic to exclude specified problem types from the check results
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description
Related to https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/packages/cli/README.md#ignore-rules
Linked Issues
Additional context