jsx-eslint/eslint-plugin-react

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

开放

#191 创建于 2015年8月17日

 (5 条评论) (0 个反应) (0 位负责人)JavaScript (2,731 个派生)batch import
help wantednew rule

仓库指标

星标
 (9,293 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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>

贡献者指南