{"action":"created","issue":{"url":"https://api.github.com/repos/standard/standard/issues/1138","repository_url":"https://api.github.com/repos/standard/standard","labels_url":"https://api.github.com/repos/standard/standard/issues/1138/labels{/name}","comments_url":"https://api.github.com/repos/standard/standard/issues/1138/comments","events_url":"https://api.github.com/repos/standard/standard/issues/1138/events","html_url":"https://github.com/standard/standard/issues/1138","id":324819341,"number":1138,"title":"Template string indentation style","user":{"login":"wll8","id":28223260,"avatar_url":"https://avatars2.githubusercontent.com/u/28223260?v=4","gravatar_id":"","url":"https://api.github.com/users/wll8","html_url":"https://github.com/wll8","followers_url":"https://api.github.com/users/wll8/followers","following_url":"https://api.github.com/users/wll8/following{/other_user}","gists_url":"https://api.github.com/users/wll8/gists{/gist_id}","starred_url":"https://api.github.com/users/wll8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wll8/subscriptions","organizations_url":"https://api.github.com/users/wll8/orgs","repos_url":"https://api.github.com/users/wll8/repos","events_url":"https://api.github.com/users/wll8/events{/privacy}","received_events_url":"https://api.github.com/users/wll8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T07:44:19Z","updated_at":"2018-05-21T12:19:50Z","closed_at":null,"author_association":"NONE","body":"**What version of standard?**\r\n``` json\r\n  \"devDependencies\": {\r\n    \"babel-eslint\": \"^8.2.1\",\r\n    \"eslint\": \"^4.15.0\",\r\n    \"eslint-config-standard\": \"^10.2.1\",\r\n    \"eslint-friendly-formatter\": \"^3.0.0\",\r\n    \"eslint-loader\": \"^1.7.1\",\r\n    \"eslint-plugin-import\": \"^2.7.0\",\r\n    \"eslint-plugin-node\": \"^5.2.0\",\r\n    \"eslint-plugin-promise\": \"^3.4.0\",\r\n    \"eslint-plugin-standard\": \"^3.0.1\",\r\n    \"eslint-plugin-vue\": \"^4.0.0\",\r\n  }\r\n``` \r\n\r\n**What operating system, Node.js, and npm version?**\r\noperating system `Mac OS X 10.13.1`\r\nnode `v8.9.4`\r\nnpm `v5.6.0`\r\n\r\n**What did you expect to happen?**\r\nI hope the style:\r\n``` js\r\nconst fHtml = formatHtml(`\r\n  <style>\r\n    ${\r\n        getText('./css1.css')\r\n      + getText('./css2.css')\r\n    }\r\n  </style>\r\n`)\r\n``` \r\n\r\n**What actually happened?**\r\nGet error: \r\n`[eslint] Expected indentation of 2 spaces but found 12. (indent)`\r\n\r\n\r\nDo I have to use the following style?\r\n``` js\r\nconst fHtml = formatHtml(`\r\n  <style>\r\n    ${getText('./css1.css') + getText('./css2.css')}\r\n  </style>\r\n`)\r\n``` \r\n\r\n``` js\r\nconst fHtml = formatHtml(`\r\n  <style>\r\n    ${\r\n  getText('./css1.css')\r\n+ getText('./css2.css')\r\n}\r\n  </style>\r\n`)\r\n``` "},"comment":{"url":"https://api.github.com/repos/standard/standard/issues/comments/390638201","html_url":"https://github.com/standard/standard/issues/1138#issuecomment-390638201","issue_url":"https://api.github.com/repos/standard/standard/issues/1138","id":390638201,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars0.githubusercontent.com/u/189580?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T12:19:50Z","updated_at":"2018-05-21T12:19:50Z","author_association":"CONTRIBUTOR","body":"I think that the problem is that you are basically writing JavaScript that looks like this:\r\n\r\n```js\r\nconst text = (\r\n        getText('./css1.css')\r\n      + getText('./css2.css')\r\n    )\r\n```\r\n\r\nI don't have a strong opinion here, but I might be leaning towards not changing anything 🤔 \r\n\r\nbtw. you could do it like this, no?\r\n\r\n```js\r\nconst fHtml = formatHtml(`\r\n  <style>\r\n    ${getText('./css1.css')}\r\n    ${getText('./css2.css')}\r\n  </style>\r\n`)\r\n```"}}
{"actor":{"display_login":"LinusU"}}