{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1419","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1419/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1419/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1419/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/1419","id":83070561,"number":1419,"title":"Wrong expected indentation with an arrow function","user":{"login":"pgilad","id":4533329,"avatar_url":"https://avatars.githubusercontent.com/u/4533329?v=3","gravatar_id":"","url":"https://api.github.com/users/pgilad","html_url":"https://github.com/pgilad","followers_url":"https://api.github.com/users/pgilad/followers","following_url":"https://api.github.com/users/pgilad/following{/other_user}","gists_url":"https://api.github.com/users/pgilad/gists{/gist_id}","starred_url":"https://api.github.com/users/pgilad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgilad/subscriptions","organizations_url":"https://api.github.com/users/pgilad/orgs","repos_url":"https://api.github.com/users/pgilad/repos","events_url":"https://api.github.com/users/pgilad/events{/privacy}","received_events_url":"https://api.github.com/users/pgilad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-31T11:50:08Z","updated_at":"2015-06-01T11:10:32Z","closed_at":null,"body":"I get wrong expected indentation on this code:\r\n```js\r\n$elm.one('hidden.bs.modal', () => {\r\n        let model = slaveForm.model;\r\n        if (isSaved) {\r\n            model = model.clone();\r\n        }\r\n        slaveForm.close();\r\n        this.model.set('test', model);\r\n        slaveForm.remove();\r\n        $elm.remove();\r\n        this.render();\r\n    })\r\n    .find('.modal-body')\r\n    .html(slaveForm.render().el);\r\n```\r\n\r\nBut the same exact code, but with a regular function instead of an arrow function is deemed correct:\r\n```js\r\n$elm.one('hidden.bs.modal', function () {\r\n        let model = slaveForm.model;\r\n        if (isSaved) {\r\n            model = model.clone();\r\n        }\r\n        slaveForm.close();\r\n        this.model.set('test', model);\r\n        slaveForm.remove();\r\n        $elm.remove();\r\n        this.render();\r\n    })\r\n    .find('.modal-body')\r\n    .html(slaveForm.render().el);\r\n```\r\n\r\nRunning with minimal `.jscsrc`:\r\n```json\r\n{\r\n    \"validateIndentation\": 4,\r\n    \"esnext\": true\r\n}\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/19139998-wrong-expected-indentation-with-an-arrow-function?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/107402002","html_url":"https://github.com/jscs-dev/node-jscs/issues/1419#issuecomment-107402002","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1419","id":107402002,"user":{"login":"mikesherov","id":364532,"avatar_url":"https://avatars.githubusercontent.com/u/364532?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesherov","html_url":"https://github.com/mikesherov","followers_url":"https://api.github.com/users/mikesherov/followers","following_url":"https://api.github.com/users/mikesherov/following{/other_user}","gists_url":"https://api.github.com/users/mikesherov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesherov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesherov/subscriptions","organizations_url":"https://api.github.com/users/mikesherov/orgs","repos_url":"https://api.github.com/users/mikesherov/repos","events_url":"https://api.github.com/users/mikesherov/events{/privacy}","received_events_url":"https://api.github.com/users/mikesherov/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T11:10:31Z","updated_at":"2015-06-01T11:10:31Z","body":"@zxqfox, yes it can be done but I don't think it's necessary for this issue. Something like adding validation for call expressions or arrays are more appropriate for that though."}}