-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix: update uncloneable options error message #20059
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: update uncloneable options error message #20059
Conversation
Hi @soda-sorcery!, thanks for the Pull Request The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page. Read more about contributing to ESLint here |
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Hi @soda-sorcery!, thanks for the Pull Request The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page. Read more about contributing to ESLint here |
0cda265
to
b52ae57
Compare
Changes were made. I think it flows better with this update. |
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.
LGTM. Thanks!
* refactor: updated uncloneable-options error message to give more clarity * updated tests to match error message change * fix: language clean-up for clarity
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
This change updates the error message for UNCLONEABLE_OPTIONS. I was reading the latest blog post about multithreading in eslint. It's a fantastic new feature and the post is great. When I reached the section about the
cloneablity requirement
, I thought it was helpful how the author mentioned some example cloneables in the text, but then noticed the error message itself didn't:to
I thought it would be helpful to add those examples directly in the error message. Users will get an additional hint about what is causing the error and it will help narrow the fix.
Is there anything you'd like reviewers to focus on?