-
Notifications
You must be signed in to change notification settings - Fork 32
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 not formatted correctly #34
Comments
It works fine if wrapping the JSX with parens
But as this is valid syntax and other tools work fine with it, maybe there is a way rjsx-mode can support it too? :) |
Also I would expect when pressing "enter" / "return" after the JSX for the cursor to move to the beginning of the next line. Instead, it continues on the same line. |
This is an indentation problem. To quote the README:
|
@felipeochoa apologies and thanks for the response |
@aikeru, no problem! I find the indentation situation a bit frustrating as well, but haven't been frustrated enough to actually fix it! 😄 |
Other editors like WebStorm and VSCode seem to format/understand a fat arrow expression, followed by linebreak, followed by a JSX tag, but rjsx-mode seems to trip on this.
IE:
Thanks for your excellent work on this mode! I've definitely seen an improvement over the react layer already.
The text was updated successfully, but these errors were encountered: