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

[eslint config][major][guide] Always require parens around arrow function arguments #1863

Merged
merged 1 commit into from Aug 9, 2019

Conversation

sharmilajesupaul
Copy link
Contributor

guide + eslint config change to always require parens around arrow function arguments.

@sharmilajesupaul sharmilajesupaul force-pushed the shar--always-use-parens-for-arrow-functions branch 2 times, most recently from 0ca14dc to 21ef5e4 Compare July 10, 2018 02:16
@tunnckoCore
Copy link

Yeaaaah!! 🎉 :)

@ljharb
Copy link
Collaborator

ljharb commented Jul 10, 2018

Thanks - since this is a semver-major, I'm going to hold off on merging it until after #1834 is released.

@ljharb ljharb self-assigned this Jul 10, 2018
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but blocking merges until it's ready


> Why? Less visual clutter.
> Why? Minimizes diff churn when adding or removing arguments.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a much better reason!

@sharmilajesupaul sharmilajesupaul force-pushed the shar--always-use-parens-for-arrow-functions branch from 21ef5e4 to 020bdde Compare July 10, 2018 17:07
@ljharb ljharb force-pushed the shar--always-use-parens-for-arrow-functions branch from 020bdde to cf6219d Compare August 13, 2018 18:22
@alexzherdev
Copy link

Since #1834 is done now, can this be rebased and merged?

README.md Outdated Show resolved Hide resolved
@ljharb ljharb force-pushed the shar--always-use-parens-for-arrow-functions branch from 95f33e7 to cf57435 Compare December 6, 2018 23:44
@ljharb ljharb force-pushed the shar--always-use-parens-for-arrow-functions branch from e1cef35 to 820745d Compare August 9, 2019 23:09
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is time

@ljharb ljharb merged commit 820745d into master Aug 9, 2019
@ljharb ljharb deleted the shar--always-use-parens-for-arrow-functions branch August 9, 2019 23:44
@tunnckoCore
Copy link

tunnckoCore commented Aug 10, 2019

Sweeet. One more rule which I like and forced in my config, got merged. :)
So I guess, I'm not that bad at decisions and logical & good style ;p

@elyobo
Copy link

elyobo commented Dec 6, 2019

Overriding this

Why? Minimizes diff churn when adding or removing arguments

I don't find this to be the case; there's still a diff on the same line, so doesn't really make any meaningful change to the diffs, but 👇 is still meaningful.

Why? Less visual clutter.

Glad that it makes some people happy though, and I don't mind overriding things if necessary :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants