-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
refactor(eslint-plugin): [restrict-plus-operands] add better error messages #4332
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(eslint-plugin): [restrict-plus-operands] add better error messages #4332
Conversation
Thanks for the PR, @lonyele! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✔️ Deploy Preview for typescript-eslint ready! 🔨 Explore the source changes: 2c5a46a 🔍 Inspect the deploy log: https://app.netlify.com/sites/typescript-eslint/deploys/61e50d4c43170b00072ab1db 😎 Browse the preview: https://deploy-preview-4332--typescript-eslint.netlify.app |
Codecov Report
@@ Coverage Diff @@
## main #4332 +/- ##
==========================================
+ Coverage 94.26% 94.61% +0.34%
==========================================
Files 169 147 -22
Lines 9440 7842 -1598
Branches 2940 2508 -432
==========================================
- Hits 8899 7420 -1479
+ Misses 321 233 -88
+ Partials 220 189 -31
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
thanks for this!
PR Checklist
Overview
came from here
I was going to change it to suggested
notNumbersOrStrings
naming, but as I think more about it like "what about bigint" or "what about any with invalid". I just made 2 error messages one for "invalid type case" and the other for "any with invalid type case". Still not super satisfied though. probably the limit of my English skill.