jsx-eslint/eslint-plugin-react

Rule proposal: forbid superfluous enclosing spaces in same-line jsx components

Open

#191 opened on Aug 17, 2015

 (5 comments) (0 reactions) (0 assignees)JavaScript (2,731 forks)batch import
help wantednew rule

Repository metrics

Stars
 (9,293 stars)
PR merge metrics
 (PR metrics pending)

Description

This would produce a warning:

<span> { tab.title } </span>

as it produces 3 <span> DOM nodes (typically not wanted)

This wouldn't:

<span>{ tab.title }</span>

Contributor guide