{"action":"closed","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/342","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/342/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/342/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/342","id":119735433,"number":342,"title":"New Rule Proposal: jsx-indent","user":{"login":"tuures","id":3033396,"avatar_url":"https://avatars.githubusercontent.com/u/3033396?v=3","gravatar_id":"","url":"https://api.github.com/users/tuures","html_url":"https://github.com/tuures","followers_url":"https://api.github.com/users/tuures/followers","following_url":"https://api.github.com/users/tuures/following{/other_user}","gists_url":"https://api.github.com/users/tuures/gists{/gist_id}","starred_url":"https://api.github.com/users/tuures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuures/subscriptions","organizations_url":"https://api.github.com/users/tuures/orgs","repos_url":"https://api.github.com/users/tuures/repos","events_url":"https://api.github.com/users/tuures/events{/privacy}","received_events_url":"https://api.github.com/users/tuures/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/new%20rule","name":"new rule","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-01T15:04:30Z","updated_at":"2015-12-29T17:17:20Z","closed_at":"2015-12-29T17:17:20Z","body":"Like the `indent` rule from the core but for jsx lines too as right now they are being ignored. \r\n\r\nThe following would be considered as an error:\r\n```\r\n/*eslint jsx-indent: [2, 2]*/\r\nFoo(a) => (\r\n  <div>\r\n<span>{a /* wrong indent here*/}</span>\r\n  </div>\r\n);\r\nfoo();\r\n```\r\nThe following would not be considered as an error:\r\n```\r\n/*eslint jsx-indent: [2, 2]*/\r\nFoo(a) => (\r\n  <div>\r\n    <span>{a}</span>\r\n  </div>\r\n);\r\nfoo();\r\n```"}}