{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/11021","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/11021/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/11021/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/11021/events","html_url":"https://github.com/eslint/eslint/issues/11021","id":374177860,"node_id":"MDU6SXNzdWUzNzQxNzc4NjA=","number":11021,"title":"Closing braces being flushed all the way to the left for inline component props","user":{"login":"riwu","id":2226023,"node_id":"MDQ6VXNlcjIyMjYwMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/2226023?v=4","gravatar_id":"","url":"https://api.github.com/users/riwu","html_url":"https://github.com/riwu","followers_url":"https://api.github.com/users/riwu/followers","following_url":"https://api.github.com/users/riwu/following{/other_user}","gists_url":"https://api.github.com/users/riwu/gists{/gist_id}","starred_url":"https://api.github.com/users/riwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riwu/subscriptions","organizations_url":"https://api.github.com/users/riwu/orgs","repos_url":"https://api.github.com/users/riwu/repos","events_url":"https://api.github.com/users/riwu/events{/privacy}","received_events_url":"https://api.github.com/users/riwu/received_events","type":"User","site_admin":false},"labels":[{"id":246711855,"node_id":"MDU6TGFiZWwyNDY3MTE4NTU=","url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-26T00:02:12Z","updated_at":"2018-12-11T18:31:47Z","closed_at":"2018-12-11T18:31:47Z","author_association":"NONE","body":"<!--\r\n    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).\r\n\r\n    This template is for bug reports. If you are here for another reason, please see below:\r\n\r\n    1. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\r\n    2. To request a rule change: https://eslint.org/docs/developer-guide/contributing/rule-changes\r\n    3. To request a change that is not a bug fix, rule change, or new rule: https://eslint.org/docs/developer-guide/contributing/changes\r\n    4. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\n    Note that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**Tell us about your environment**\r\n\r\n* **ESLint Version:**\r\n```\r\n\"eslint\": \"^5.7.0\",\r\n\"eslint-config-airbnb\": \"^17.1.0\",\r\n\"eslint-plugin-import\": \"^2.14.0\",\r\n\"eslint-plugin-jsx-a11y\": \"^6.1.2\",\r\n\"eslint-plugin-react\": \"^7.11.1\",\r\n```\r\n\r\n* **Node Version:** v8.12.0\r\n* **yarn Version:** 1.9.4\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?** babel-eslint\r\n\r\n**Please show your full configuration:**\r\n\r\n<details>\r\n<summary>Configuration</summary>\r\n\r\n<!-- Paste your configuration below: -->\r\n```js\r\n{\r\n  \"root\": true,\r\n  \"extends\": \"airbnb\",\r\n  \"parser\": \"babel-eslint\",\r\n  \"rules\": {\r\n    \"react/jsx-filename-extension\": [1, { \"extensions\": [\".js\", \".jsx\"] }],\r\n    \"react/prop-types\": 0,\r\n    \"no-console\": 0,\r\n    \"no-debugger\": 0,\r\n    \"react/sort-comp\": 0\r\n  }\r\n}\r\n```\r\n\r\n</details>\r\n\r\n**What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.**\r\n\r\n<!-- Paste the source code below: -->\r\n![](https://i.imgur.com/sIupyet.gif)\r\n```js\r\nconst Component = () => (\r\n  <View\r\n    ListFooterComponent={\r\n      <View\r\n        rowSpan={3}\r\n        placeholder=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\"\r\n      />\r\n    }\r\n  />\r\n);\r\n```\r\n\r\n<!-- Paste the command you used to run ESLint: -->\r\n```bash\r\neslint --fix\r\n```\r\n\r\n**What did you expect to happen?**\r\nIt should be formatted like this instead:\r\n```\r\nconst Component = () => (\r\n  <View\r\n    ListFooterComponent={(\r\n      <View\r\n        rowSpan={3}\r\n        placeholder=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\"\r\n      />\r\n    )}\r\n  />\r\n);\r\n```\r\nOn the older versions, it will not flush the brackets to the left:\r\n```\r\n\"eslint\": \"^4.13.0\",\r\n\"eslint-config-airbnb\": \"^16.1.0\",\r\n\"eslint-plugin-import\": \"^2.8.0\",\r\n\"eslint-plugin-jsx-a11y\": \"^6.0.2\",\r\n\"eslint-plugin-react\": \"^7.5.1\",\r\n```\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\nLine 11's closing braces are being flushed to the left when `eslint` formats it. "}}
{"actor":{"display_login":"eslint"}}