Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upStandardize arrow functions #1144
Comments
This comment has been minimized.
This comment has been minimized.
|
I think this would be great as well, my own code is a total mix between I'm okay with both, but I think that always having the parenthesis is easier... |
This comment has been minimized.
This comment has been minimized.
|
Yes, it is. Using parens make the code more consistent. |
This comment has been minimized.
This comment has been minimized.
|
Looking at the current eco-system impact of enabling
Hmm, this one is very very close. I'm looking at being able to fetch the full list of packages depending on |
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Sep 25, 2018
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
label
Sep 25, 2018
stale
bot
closed this
Oct 2, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Dec 31, 2018
standard
unlocked this conversation
Aug 12, 2019
feross
reopened this
Aug 12, 2019
stale
bot
removed
the
stale
label
Aug 12, 2019
feross
added
the
enhancement
label
Aug 12, 2019
This comment has been minimized.
This comment has been minimized.
'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }]Because I've been using the
I could live with |
This comment has been minimized.
This comment has been minimized.
|
My vote also goes to |
NicoGorr commentedMay 31, 2018
•
edited
Could you please add some rules to arrow functions so the code will be more consistent?
I suggest:
arrow-body-styleset toas-neededarrow-parensset toalwaysimplicit-arrow-linebreakset tobesideThank you.