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 upno-unneeded-ternary with arrow function results in parsing error #1266
Comments
This comment has been minimized.
This comment has been minimized.
|
Could you report this upstream to eslint and link that issue here? Thanks |
This comment has been minimized.
This comment has been minimized.
|
Opened bug report in eslint repo |
This comment has been minimized.
This comment has been minimized.
|
That's great, thanks! |
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Jul 2, 2019
|
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
Jul 2, 2019
This comment has been minimized.
This comment has been minimized.
|
This is fixed upstream and should be fixed in Standard 13, install with |
LinusU
closed this
Jul 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
noisyscanner commentedMar 28, 2019
What version of standard?📦 5.6.0
12.0.1
What operating system, Node.js, and npm version?
⬢ 8.11.2
Using the
no-unneeded-ternaryrule.When formatting code that is using a ternary like below, the function is not wrapped, causing a parse error and fails.
Causes this error
EXPECTED