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

🐛 Arrow function chain doesn't break #303

Closed
1 task done
ematipico opened this issue Sep 16, 2023 · 0 comments · Fixed by #622
Closed
1 task done

🐛 Arrow function chain doesn't break #303

ematipico opened this issue Sep 16, 2023 · 0 comments · Fixed by #622
Assignees
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@ematipico
Copy link
Member

Environment information

main

What happened?

In cases where we have two arrow functions concatenated, we don't break.

us

export default (element) => async (Component, props, slotted, { client }) => {
  delete props['class'];
  if (!element.hasAttribute('ssr')) return;
};

them

export default (element) =>
  async (Component, props, slotted, { client }) => {
    delete props['class'];
    if (!element.hasAttribute('ssr')) return;
  };

Expected result

We should break the line before the start of the returned arrow function

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Sep 16, 2023
@victor-teles victor-teles self-assigned this Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants