Join GitHub today
[New] add `jsx-no-useless-fragment` rule #2261
Now a fragment is fixable if it is not an outermost element, except for when it might add extra spaces. The fix is a simple removal of openingElement and closingElement.
// fixing by simply removing fragments will add a space between "git" and "hub" <div> git<> hub </> </div>