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

JSX output is broken #118

Closed
milahu opened this issue Nov 1, 2022 · 2 comments
Closed

JSX output is broken #118

milahu opened this issue Nov 1, 2022 · 2 comments
Labels
bug Something isn't working recast

Comments

@milahu
Copy link

milahu commented Nov 1, 2022

actual: wrong indent, wrong whitespace

function App(props) {
  return (
    (<div class="app">hello{props.name}
    </div>)
  );
}

expected

function App(props) {
  return (
    <div class="app">
      hello {props.name}
    </div>
  );
}

upstream issue benjamn/recast#211

see also #116

@coderaiser
Copy link
Owner

Fixed with benjamn/recast#1223. Landed in @putout/recast v1.10.0 🎉 .

Please reinstall 🐊Putout. Is it works for you?

@coderaiser coderaiser added bug Something isn't working recast labels Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working recast
Projects
None yet
Development

No branches or pull requests

2 participants