{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5073","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5073/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5073/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5073/events","html_url":"https://github.com/eslint/eslint/issues/5073","id":128750228,"number":5073,"title":"indent: invalid identation req after multiline sting","user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/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/evaluating","name":"evaluating","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-01-26T07:52:03Z","updated_at":"2016-06-24T20:14:59Z","closed_at":null,"body":"v2.0.0-beta.2\r\n\r\nI tried to migrate from https://github.com/nodeca/eslint-plugin-nodeca and found one problem.\r\n\r\nThe following code:\r\n\r\n```js\r\n/* eslint indent: [2, 2] */\r\n\r\nfoo.bar()\r\n   .baz(function () {\r\n\r\n  var a;\r\n  // function body\r\n});\r\n\r\n\r\nfoo.bar(\r\n    baz,\r\n    baq,\r\n    function () {\r\n\r\n  var a;\r\n  // function body\r\n});\r\n```\r\n\r\ngive this errors:\r\n\r\n```\r\n   6:3  error  Expected indentation of 5 space characters but found 2  indent\r\n   8:1  error  Expected indentation of 3 space characters but found 0  indent\r\n  16:3  error  Expected indentation of 6 space characters but found 2  indent\r\n  18:1  error  Expected indentation of 4 space characters but found 0  indent\r\n```\r\n\r\nI expect no errors. See real code sample: https://github.com/nodeca/nodeca.core/blob/master/lib/autoload/hooks/init/faye.js#L240-L249\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/30212191-indent-invalid-identation-req-after-multiline-sting?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/228451053","html_url":"https://github.com/eslint/eslint/issues/5073#issuecomment-228451053","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5073","id":228451053,"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":"2016-06-24T20:14:58Z","updated_at":"2016-06-24T20:14:58Z","body":"@BYK @gyandeeps could you work with @puzrin to figure out how this should be done? I think we would need an option for this with probably three values, something like:\r\n```js\r\nmultiline: \"no-indent | parent | align\"\r\n```\r\nAnd I think it should be set to \"parent\" by default. (parent would be indentation of parent + 1 indent level)"}}
{"actor":{"display_login":"ilyavolodin"}}