This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Eslint rule: enforce parenthesis around arrow function arguments #456
Locked
samturrell
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I'd prefer if we always had the parenthesis. Then it be the same everywhere, not just when needed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I see some inconsistency around around functions, and formatting of the arguments when there's a single value. Would be good to come to an agreement on how these should be formatted.
This would be the rule addition: https://eslint.org/docs/rules/arrow-parens
Examples of the proposed rule:
Examples of incorrect code for this rule with the default "always" option:
Examples of correct code for this rule with the default "always" option:
Beta Was this translation helpful? Give feedback.
All reactions