jsx-eslint/eslint-plugin-react
在 GitHub 查看Rule proposal: forbid superfluous enclosing spaces in same-line jsx components
Open
#191 创建于 2015年8月17日
help wantednew rule
描述
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>