{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4076","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4076/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4076/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4076/events","html_url":"https://github.com/eslint/eslint/issues/4076","id":110288216,"number":4076,"title":"Indent with multiline arguments in a chain","user":{"login":"MadLittleMods","id":558581,"avatar_url":"https://avatars.githubusercontent.com/u/558581?v=3","gravatar_id":"","url":"https://api.github.com/users/MadLittleMods","html_url":"https://github.com/MadLittleMods","followers_url":"https://api.github.com/users/MadLittleMods/followers","following_url":"https://api.github.com/users/MadLittleMods/following{/other_user}","gists_url":"https://api.github.com/users/MadLittleMods/gists{/gist_id}","starred_url":"https://api.github.com/users/MadLittleMods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadLittleMods/subscriptions","organizations_url":"https://api.github.com/users/MadLittleMods/orgs","repos_url":"https://api.github.com/users/MadLittleMods/repos","events_url":"https://api.github.com/users/MadLittleMods/events{/privacy}","received_events_url":"https://api.github.com/users/MadLittleMods/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-07T18:32:48Z","updated_at":"2015-10-07T18:34:55Z","closed_at":null,"body":"The [`indent`](http://eslint.org/docs/rules/indent) rule should take into account a chain that starts with multiline function call.\r\n\r\n - eslint v1.6.0\r\n\r\nThis throws a `Expected indentation` error for each parameter in `geocode` and the closing `})` line; it wants it to be one level less:\r\n\r\n```js\r\nfunction foo() {\r\n    return geocode({\r\n            address: 'some address'\r\n        })\r\n        .then((result) => {\r\n            return result.latlng;\r\n        });\r\n}\r\n```\r\n\r\nCurrently this works fine:\r\n```js\r\nfunction foo() {\r\n    return geocode({ address: 'some address' })\r\n        .then((result) => {\r\n            return result.latlng;\r\n        });\r\n}\r\n```\r\n\r\n---\r\n\r\nThis may be related to https://github.com/eslint/eslint/issues/4075\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27238744-indent-with-multiline-arguments-in-a-chain?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/146287468","html_url":"https://github.com/eslint/eslint/issues/4076#issuecomment-146287468","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4076","id":146287468,"user":{"login":"ilyavolodin","id":1380062,"avatar_url":"https://avatars.githubusercontent.com/u/1380062?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavolodin","html_url":"https://github.com/ilyavolodin","followers_url":"https://api.github.com/users/ilyavolodin/followers","following_url":"https://api.github.com/users/ilyavolodin/following{/other_user}","gists_url":"https://api.github.com/users/ilyavolodin/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavolodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavolodin/subscriptions","organizations_url":"https://api.github.com/users/ilyavolodin/orgs","repos_url":"https://api.github.com/users/ilyavolodin/repos","events_url":"https://api.github.com/users/ilyavolodin/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavolodin/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T18:34:55Z","updated_at":"2015-10-07T18:34:55Z","body":"@gyandeeps @BYK Can you take a look?"}}