{"action":"opened","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2376","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2376/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2376/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2376/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/2376","id":477401121,"node_id":"MDU6SXNzdWU0Nzc0MDExMjE=","number":2376,"title":"react/jsx-wrap-multilines add an option that requires to use React.Fragment instead of parentheses","user":{"login":"gajus","id":973543,"node_id":"MDQ6VXNlcjk3MzU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/973543?v=4","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-06T14:03:49Z","updated_at":"2019-08-06T14:03:49Z","closed_at":null,"author_association":"NONE","body":"I don't see what is stylistic advantage of writing this:\r\n\r\n```js\r\nreturn (\r\n  <PrimaryHeading>\r\n    Event Seating Lookups\r\n  </PrimaryHeading>\r\n);\r\n\r\n```\r\n\r\nover:\r\n\r\n```js\r\nreturn <PrimaryHeading>\r\n  Event Seating Lookups\r\n</PrimaryHeading\r\n\r\n```\r\n\r\nAssuming developers want to align the attributes, then a better choice would be to use React.Fragment syntax, i.e.\r\n\r\n\r\n```js\r\nreturn <>\r\n  <PrimaryHeading>\r\n    Event Seating Lookups\r\n  </PrimaryHeading\r\n</>;\r\n\r\n```\r\n\r\nThe benefit of this approach is that I can add a new element at the same depth without modifying the surrounding code."}}
{"actor":{"display_login":"gajus"}}