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

Fix indentation with JSX Fragments #2157

Merged
merged 4 commits into from Feb 7, 2020
Merged

Conversation

bertho-zero
Copy link
Contributor

This PR fix an indentation issue with Fragment:

Before:

// in render method

{process.env.NODE_ENV === 'development'
&& typeof retry === 'function' ? (
  <>
      {' '}
      <button onClick={retry} type="button" className="btn btn-default">
      <FormattedMessage id="retry" defaultMessage="Retry" />
    </button>
    </>
  ) : null}

After:

{process.env.NODE_ENV === 'development'
&& typeof retry === 'function' ? (
  <>
    {' '}
    <button onClick={retry} type="button" className="btn btn-default">
      <FormattedMessage id="retry" defaultMessage="Retry" />
    </button>
  </>
  ) : null}

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ljharb ljharb merged commit 651280e into airbnb:master Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants