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-indent: more bugs #898

Closed
ljharb opened this issue Oct 10, 2016 · 1 comment
Closed

jsx-indent: more bugs #898

ljharb opened this issue Oct 10, 2016 · 1 comment
Assignees
Labels

Comments

@ljharb
Copy link
Member

ljharb commented Oct 10, 2016

        <div>
          {[
            <span key="one" />,
            <span key="two" />,
            <span key="three" />,
          ]}
        </div>

With it set to "2", i get Expected indentation of 14 space characters but found 12.

When I set it to:

        <div>
          {[
            <span key="one" />,
              <span key="two" />,
                <span key="three" />,
          ]}
        </div>

then react-jsx-indent is happy, but indent now complains.

@tleunen
Copy link

tleunen commented Oct 10, 2016

Same here. The issue is for any array.

[
  'One',
  <span key="two" />,
  'three'
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants