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

prefer-arrow-callback is unset by Prettier #498

Open
fregante opened this issue Sep 25, 2020 · 1 comment
Open

prefer-arrow-callback is unset by Prettier #498

fregante opened this issue Sep 25, 2020 · 1 comment

Comments

@fregante
Copy link
Member

fregante commented Sep 25, 2020

I think Prettier needs to be customized further because it undoes some of XO’s changes. For example:

// prettier: true
.map(function (repo) {
  return repo.name;
});
// prettier: false
.map(repo => {
  return repo.name;
});
// prettier: true again, notice the parens
.map((repo) => {
  return repo.name;
});

Related:

@sindresorhus
Copy link
Member

Agreed

@fregante fregante added bug and removed enhancement labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants