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? :) |
platinumazure
left a comment
There was a problem hiding this comment.
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! |
platinumazure
left a comment
There was a problem hiding this comment.
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? :) |
|
@kaicataldo @not-an-aardvark any objections to merging this? |
|
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_TYPEs for multiline variable declarations (multiline-const,multiline-let,multiline-var,singleline-const,singleline-let,single-line-var)