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

Introduce arrow-body-style option to work-around eslint bug #13102

Closed
devinrhode2 opened this issue Jul 14, 2022 · 1 comment
Closed

Introduce arrow-body-style option to work-around eslint bug #13102

devinrhode2 opened this issue Jul 14, 2022 · 1 comment

Comments

@devinrhode2
Copy link

devinrhode2 commented Jul 14, 2022

Unsurprisingly, this has been asked about a few times already.

#5195
#4928
#3949
#3425

I believe this is unrelated, but mentions arrow-body-style: #165

Oddly, github.com/prettier/prettier uses both of these problematic eslint rules:
https://github.com/prettier/eslint-plugin-prettier#arrow-body-style-and-prefer-arrow-callback-issue
GH issue link: prettier/eslint-plugin-prettier#65

I think, because of these very long-standing eslint issue, it would be nice if prettier supported some config options equivalent to these two eslint rules:

Please don't feel bad about just closing this, it's really A-ok :)

@fisker
Copy link
Member

fisker commented Jul 14, 2022

This is not possible for us to fix, it should either fix on eslint-plugin-prettier or eslint side.

prettier/eslint-plugin-prettier#379 should fix these issues, but it it will be slower.

@fisker fisker closed this as completed Jul 14, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants