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

Issue with indentation inside of functions #1

Open
xymostech opened this issue Feb 1, 2017 · 0 comments
Open

Issue with indentation inside of functions #1

xymostech opened this issue Feb 1, 2017 · 0 comments

Comments

@xymostech
Copy link

I've found a few bugs, notably this test case:

function() {
    return (
        <div
            id="boo"
        />
    );
}

doesn't indent correctly. I also hit a bunch of rjsx-mode-hypothesize-unuseds around there when I tried to indent manually, but it seems to have gone away now... :P

cjfuller added a commit that referenced this issue Feb 2, 2017
This goes with issue #1.  It looks like there's two problems.  The first is that
the closing paren isn't indented correctly (which this checks).  The second is
that the jsx isn't recognized correctly for indentation until the closing paren.
(But after the closing paren is in place it does indent correctly, so this test
doesn't show an error in the jsx part).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant