Skip to content
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

New: add "multiline" option to padding-line-between-statements (#9642) #9644

Closed

Conversation

hotforfeature
Copy link

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:

#9642

What changes did you make? (Give an overview)
Added an isMultilineStatement(node) function to the rule, and implemented a new "multiline" option that uses It. I also modified the "multiline-block-like" option to use the new function.

Is there anything you'd like reviewers to focus on?
I haven't added tests yet, I'm trying to wrap my head around how the test cases work. Any help or suggestions are welcome.

@jsf-clabot
Copy link

jsf-clabot commented Nov 20, 2017

CLA assistant check
All committers have signed the CLA.

@aladdin-add aladdin-add added enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion rule Relates to ESLint's core rules labels Nov 20, 2017
@platinumazure
Copy link
Member

Looks like both #9642 and #9491 relate to this general idea. #9491 is accepted right now.

@hotforfeature Could you please take a look at both of the issues linked above and let us know if #9642 is definitely proposing something that #9491 is missing (or vice versa), or if the proposal in #9491 might be suitable for your use case?

@hotforfeature
Copy link
Author

Yes, it looks like #9491 is proposing the same thing as what I proposed and added. I must have missed it when searching through the issues before I created mine.

@platinumazure
Copy link
Member

@hotforfeature No problem. Since #9491 is accepted, do you want to modify this PR to match that issue and close the other issue? Thanks!

@aladdin-add
Copy link
Member

closing, since #8668 get merged. thanks for contributing!

@aladdin-add aladdin-add closed this Feb 3, 2018
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Aug 3, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants