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

Adjust prettier config to match eslint #165

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

mxstbr
Copy link
Collaborator

@mxstbr mxstbr commented Feb 5, 2019

Eslint wants single parens around arrow functions, but prettier was
removing them, leading to annoying lint errors.

This fixes it by adjusting the prettier config to match the eslint config.

An even better fix would be to use eslint-config-prettier,
which disables all lint rules related to style, as checking the style
with eslint is unnecessary when using prettier.

That being said, this should be good enough for now.

Eslint wants single parens around arrow functions, but prettier was
removing them, leading to annoying lint errors.

This fixes it by adjusting the prettier config to match the eslint config.

An even better fix would be to use `eslint-config-prettier`,
which disables all lint rules related to style, as checking the style
with eslint is unnecessary when using prettier.

That being said, this should be good enough for now.
Copy link
Owner

@sstur sstur left a comment

Choose a reason for hiding this comment

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

Nice fix!

@sstur sstur added the approved label Feb 5, 2019
@sstur sstur merged commit 7773089 into sstur:master Feb 5, 2019
@mxstbr mxstbr deleted the adjust-prettier-config branch February 5, 2019 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants