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
Update: single- and multiline const, let, var statements (fixes #10721) #10919
Conversation
PR was updated as requested in #10721: |
@platinumazure @not-an-aardvark Is that OK for you guys? :) |
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.
This implementation is looking good so far. Sorry for losing track of this.
Just one request: Could you add some tests that use the multiline-var option with a single line var statement (and vice versa, and for let/const) which show that the "wrong" options don't lint for those cases? Thanks!
@platinumazure Done, thanks! |
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! Just want some more eyes on this.
Oh, can you take a look at the Contributor License Agreement issue? We can't merge this without you signing the CLA. Thanks! |
@platinumazure Hmm, that's strange, I signed it when I first opened the PR and can't sign it again if I check the details (fields are disabled and there is no submit button anyway). See https://imgur.com/a/ROMQPZy |
@neemzy It seems like your git commit was created with a different email address ( |
@not-an-aardvark Ah, right, my bad. It's fixed! |
@platinumazure Are we waiting for more approvals from the team? :) |
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
@kaicataldo @not-an-aardvark any objections to merging this? |
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!
Thanks! :) |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[x] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
#10721
What changes did you make? (Give an overview)
STATEMENT_TYPE
s for multiline variable declarations (multiline-const
,multiline-let
,multiline-var
,singleline-const
,singleline-let
,single-line-var
)