Skip to content

Error in strings inside React #2055

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

Closed
ilanolkies opened this issue Jul 5, 2019 · 3 comments
Closed

Error in strings inside React #2055

ilanolkies opened this issue Jul 5, 2019 · 3 comments

Comments

@ilanolkies
Copy link

ilanolkies commented Jul 5, 2019

This is a result after eslint:

                  <ul>
                    <li>
                      <div>
                        <i>_hash bytes32</i>
                      </div>
                      <code>
0x
                        {sha3(name.split('.')[0])}
                      </code>
                    </li>
                    <li>
                      <i>_owner address</i>
:
                      {strings.mycrypto_bid_select_owner}
                    </li>
                  </ul>
@ljharb
Copy link
Collaborator

ljharb commented Jul 5, 2019

What error?

@ilanolkies
Copy link
Author

When I run eslint --fix over this code, this is the result. The errors are the 0x and the : at left without indentation.

@ljharb
Copy link
Collaborator

ljharb commented Jul 17, 2019

The jsx-indent rule is supposed to cover this; however, I think it doesn't at the moment.

Closing in favor of jsx-eslint/eslint-plugin-react#2318 and jsx-eslint/eslint-plugin-react#1662.

@ljharb ljharb closed this as completed Jul 17, 2019
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

2 participants