Skip to content

Inline if incompatible with jsx curly spacing. #1763

@fpoirier1

Description

@fpoirier1

With this rule :
"react/jsx-curly-spacing": ["error", "never", {"allowMultiline": true}]

This will fail with error :
<div className={ this.state.renderInfo ? "infoPanel col-xs-12" : "unToggled col-xs-12" } >

sourceCode.getCommentsAfter is not a function
TypeError: sourceCode.getCommentsAfter is not a function at Object.fix (/node_modules/eslint-plugin-react/lib/rules/jsx-curly-spacing.js:231:42)

This will pass :
<div className={this.state.renderInfo ? "infoPanel col-xs-12" : "unToggled col-xs-12"} >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions