Skip to content

Can't seem to properly indent ? : statements #625

Closed
@0x80

Description

@0x80

In our codebase we use quite a bit of this type of if/else rendering:

      {
          condition
          ? <div>
              <div> something </div>
            </div>
          : <div>
              <div> something </div>
            </div>
        }

Whatever indentation I try I always seem to get a jsx-indent error. Is there a way to format this without the linter complaining?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions