-
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
Indentation is unexpected without parenthesis #93
Comments
Nope, that's not possible currently, but PRs welcome |
Do you have any pointers on implementing this type of indentation? |
You may be able to get it done simply by editing `rjsx--indent-line-to-offset' The indentation code works by tracking a parent JSX element, relative to which we indent children. This all happens here. |
This becomes pretty unpleasant when formatting stateless components with arrow functions:
becomes
|
But "this" what @vaer-k is refering to is a bug in js2 (I think) |
I expect different indentation for the following code:
Actual:
Expected:
Basically I expect similar indentation with and without the parentheses. Is this something that is accomplishable in rjsx-mode?
js2-jsx-mode
seems to have broken indentation in this scenario as well but in a different wayThe text was updated successfully, but these errors were encountered: