-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat: update error loc of require-yield and no-useless-constructor
#20267
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 docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
lumirlumir
left a comment
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.
Personally, I like this change to make the rules less visually disruptive. 👍
I've left some comments throughout. If any of my suggestions are incorrect, please let me know!
lumirlumir
left a comment
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!
Would like another review before merging.
snitin315
left a comment
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 you
|
The release monitor said no patch release is pending. But I see 10.0.0-alpha.0 was just released, so I hope it's okay that this PR was merged?
|
It's ok, we can merge new changes after prereleases. |

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)
[x] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Updated the error location of
require-yieldandno-useless-constructorto make them less visually disruptive. Similar rulerequire-yield,require-awaitalso highlight function head.Is there anything you'd like reviewers to focus on?
Similar to #20258