-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): [no-base-to-string] prevent stringifying arrays with elements that cannot be stringified #10114
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
feat(eslint-plugin): [no-base-to-string] prevent stringifying arrays with elements that cannot be stringified #10114
Conversation
Thanks for the PR, @ronami! 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. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10114 +/- ##
==========================================
+ Coverage 86.07% 86.11% +0.03%
==========================================
Files 428 429 +1
Lines 14939 14993 +54
Branches 4333 4346 +13
==========================================
+ Hits 12859 12911 +52
+ Misses 1735 1734 -1
- Partials 345 348 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Closing as it takes me a bit longer than I thought to finish this. I'll re-open when the PR is ready for review. |
PR Checklist
Overview
This PR addresses #3388 and adds checks calling
.join()
on an array that not all of its elements can be stringified correctly:I've also included failing in the case of trying to stringify an array (without
.join()
):Please note that I haven't put this behind an option, so this is technically a breaking change, although according to the docs:
Please let me know if I should put this behind an option.