jsx-eslint/eslint-plugin-react

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

Open

#191 ouverte le 17 août 2015

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)JavaScript (8 630 stars) (2 797 forks)batch import
help wantednew rule

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>

Guide contributeur