{"action":"opened","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/454","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/454/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/454/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/454","id":134730751,"number":454,"title":"jsx-indent rule with ternary operators on multiple lines and JSX elements","user":{"login":"goffreder","id":156642,"avatar_url":"https://avatars.githubusercontent.com/u/156642?v=3","gravatar_id":"","url":"https://api.github.com/users/goffreder","html_url":"https://github.com/goffreder","followers_url":"https://api.github.com/users/goffreder/followers","following_url":"https://api.github.com/users/goffreder/following{/other_user}","gists_url":"https://api.github.com/users/goffreder/gists{/gist_id}","starred_url":"https://api.github.com/users/goffreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goffreder/subscriptions","organizations_url":"https://api.github.com/users/goffreder/orgs","repos_url":"https://api.github.com/users/goffreder/repos","events_url":"https://api.github.com/users/goffreder/events{/privacy}","received_events_url":"https://api.github.com/users/goffreder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T23:41:11Z","updated_at":"2016-02-18T23:41:11Z","closed_at":null,"body":"This code\r\n```javascript\r\nconst foo = bar\r\n    ? (\r\n        <p>\r\n            {'Bar is true!'}\r\n        </p>\r\n    )\r\n    : (\r\n        <p>\r\n            {'Bar is false!'}\r\n        </p>\r\n    );\r\n```\r\nviolates the `jsx-indent` rule on the lines with the `<p>` opening tags, saying that everything should be brought one level back.\r\n\r\nI use a lot this syntax, especially when I have to render one complex component or another according to a boolean variable, and I can't seem to find a workaround to avoid the linting error (apart from not using the ternary operator, which I don't like)."}}