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

Nodes with trailing newlines retain the trailing newlines after sort #1

Open
nedjulius opened this issue Mar 17, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@nedjulius
Copy link
Owner

nedjulius commented Mar 17, 2024

Complicated the allowLineSeparatedGroups option

For example:

const styles = stylex.create({
  foo: {
    display: 'flex',
    borderColor: 'red',

    alignItems: 'center',
  }
});

After replacing properties display and borderColor in the ObjectExpression.properties list, we get:

const styles = stylex.create({
  foo: {
    borderColor: 'red',

    display: 'flex',
    alignItems: 'center',
  }
});

The expected behavior:

const styles = stylex.create({
  foo: {
    borderColor: 'red',
    display: 'flex',

    alignItems: 'center',
  }
});
@nedjulius nedjulius added the bug Something isn't working label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant