With rule react/jsx-child-element-spacing, the error location is not very helpful when there is ambiguous spacing before the inline element.
Current:
<div> {/* Error is at the end of this element */}
Some
text
<a href="/">
link
</a>
</div>
Expected:
<div>
Some
text
<a href="/"> {/* Error should be at the start of this element */}
link
</a>
</div>
cc @pfhayes
Thanks @pfhayes!
Most helpful comment
Addressed in https://github.com/yannickcr/eslint-plugin-react/pull/1666