Skip to content

Rule to make sure opening and closing HTML/JSX tags have the same indentation #1

@hem-brahmbhatt

Description

@hem-brahmbhatt

I couldn't see an existing rule for this.

e.g.

    { withImg(type) && <TeaserImage
      href={url}
      desktopImg={getImage(images.landscape, desktopImg(type))}
      mobileImg={getImage(images.landscape, 'thesun-mobile-medium')}
      label={label}
      hasVideo={hasVideo}
    />
    }

should be

    { withImg(type) && 
    <TeaserImage
      href={url}
      desktopImg={getImage(images.landscape, desktopImg(type))}
      mobileImg={getImage(images.landscape, 'thesun-mobile-medium')}
      label={label}
      hasVideo={hasVideo}
    />
    }

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