I use the double colon this::
syntax for calling private methods in my VSCode React app, which invariably gives a } expected
error line as well as several other error lines below it as a result. I am using the JavaScript Standard Style and have the Prettier extension enabled. I want to find whatever rule governs this usage and allow its use.
I've looked through the VSCode settings and extension settings to try to identify what rule conflict with no luck.
function renderMobileExpanded() {
return (
this.state.expanded && (
<div styleName="collapsed-portion">
<div className="container" onClick={this::handleLinkClick}>
<ul>{this.props.children}</ul>
{this.props.subnavLinks && (
<ul styleName="subnav">{this.props.subnavLinks}</ul>
)}
</div>
</div>
)
)
}
I expect to be able to use this double colon syntax without it throwing my linter into a small panic.