Closed
Description
I added spacing/objectLiterals config for jsx-curly-spacing and I think I am getting an issue.
render() {
return (
<div
onClick={ this.handleClick }
style={{ color: "blue" }} // From doc, it should affect only this part right?
>
{ // <- There should be no newline after '{'
!this.state.clicked
? "Hi"
: "Hey"
} // <- There should be no newline before '{'
</div>
)
}
The doc only show an example in props, not sure why it's yelling for nodes.