{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/216","repository_url":"https://api.github.com/repos/eslint/typescript-eslint-parser","labels_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/216/comments","events_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/216/events","html_url":"https://github.com/eslint/typescript-eslint-parser/issues/216","id":220822381,"number":216,"title":"Typescript finds comment inside of template string","user":{"login":"bradzacher","id":7462525,"avatar_url":"https://avatars2.githubusercontent.com/u/7462525?v=3","gravatar_id":"","url":"https://api.github.com/users/bradzacher","html_url":"https://github.com/bradzacher","followers_url":"https://api.github.com/users/bradzacher/followers","following_url":"https://api.github.com/users/bradzacher/following{/other_user}","gists_url":"https://api.github.com/users/bradzacher/gists{/gist_id}","starred_url":"https://api.github.com/users/bradzacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradzacher/subscriptions","organizations_url":"https://api.github.com/users/bradzacher/orgs","repos_url":"https://api.github.com/users/bradzacher/repos","events_url":"https://api.github.com/users/bradzacher/events{/privacy}","received_events_url":"https://api.github.com/users/bradzacher/received_events","type":"User","site_admin":false},"labels":[{"id":295591815,"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"soda0289","id":2373964,"avatar_url":"https://avatars2.githubusercontent.com/u/2373964?v=3","gravatar_id":"","url":"https://api.github.com/users/soda0289","html_url":"https://github.com/soda0289","followers_url":"https://api.github.com/users/soda0289/followers","following_url":"https://api.github.com/users/soda0289/following{/other_user}","gists_url":"https://api.github.com/users/soda0289/gists{/gist_id}","starred_url":"https://api.github.com/users/soda0289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soda0289/subscriptions","organizations_url":"https://api.github.com/users/soda0289/orgs","repos_url":"https://api.github.com/users/soda0289/repos","events_url":"https://api.github.com/users/soda0289/events{/privacy}","received_events_url":"https://api.github.com/users/soda0289/received_events","type":"User","site_admin":false},"assignees":[{"login":"soda0289","id":2373964,"avatar_url":"https://avatars2.githubusercontent.com/u/2373964?v=3","gravatar_id":"","url":"https://api.github.com/users/soda0289","html_url":"https://github.com/soda0289","followers_url":"https://api.github.com/users/soda0289/followers","following_url":"https://api.github.com/users/soda0289/following{/other_user}","gists_url":"https://api.github.com/users/soda0289/gists{/gist_id}","starred_url":"https://api.github.com/users/soda0289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soda0289/subscriptions","organizations_url":"https://api.github.com/users/soda0289/orgs","repos_url":"https://api.github.com/users/soda0289/repos","events_url":"https://api.github.com/users/soda0289/events{/privacy}","received_events_url":"https://api.github.com/users/soda0289/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-04-11T02:32:03Z","updated_at":"2017-04-11T04:57:33Z","closed_at":null,"body":"**What version of TypeScript are you using?**\r\n2.2.1\r\n\r\n**What version of `typescript-eslint-parser` are you using?**\r\n2.1.0\r\n\r\n**What code were you trying to parse?**\r\n```JS\r\nconst str = `${__dirname}/test/*.js`;\r\n\r\nmodule.exports = str;\r\n```\r\n\r\n**What happened?**\r\n```\r\nCannot read property 'loc' of null\r\nTypeError: Cannot read property 'loc' of null\r\n    at getNodeIndent (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/rules/indent.js:328:71)\r\n    at checkNodeIndent (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/rules/indent.js:363:34)\r\n    at nodes.forEach.node (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/rules/indent.js:411:35)\r\n    at Array.forEach (native)\r\n    at checkNodesIndent (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/rules/indent.js:411:19)\r\n    at EventEmitter.Program (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/rules/indent.js:975:21)\r\n    at emitOne (events.js:101:20)\r\n    at EventEmitter.emit (events.js:191:7)\r\n    at NodeEventGenerator.applySelector (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/util/node-event-generator.js:265:26)\r\n    at NodeEventGenerator.applySelectors (/Users/bradzacher/.config/yarn/global/node_modules/eslint/lib/util/node-event-generator.js:294:22)\r\n```\r\n\r\nnote that these files seem to work fine, which leads me to believe it's a problem with the asterisk in the template string.\r\n```JS\r\nconst str = `${__dirname}`;\r\n\r\nmodule.exports = str;\r\n```\r\n```JS\r\nconst str = `${__dirname}/asdf.js`;\r\n\r\nmodule.exports = str;\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/comments/293149892","html_url":"https://github.com/eslint/typescript-eslint-parser/issues/216#issuecomment-293149892","issue_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/216","id":293149892,"user":{"login":"soda0289","id":2373964,"avatar_url":"https://avatars2.githubusercontent.com/u/2373964?v=3","gravatar_id":"","url":"https://api.github.com/users/soda0289","html_url":"https://github.com/soda0289","followers_url":"https://api.github.com/users/soda0289/followers","following_url":"https://api.github.com/users/soda0289/following{/other_user}","gists_url":"https://api.github.com/users/soda0289/gists{/gist_id}","starred_url":"https://api.github.com/users/soda0289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soda0289/subscriptions","organizations_url":"https://api.github.com/users/soda0289/orgs","repos_url":"https://api.github.com/users/soda0289/repos","events_url":"https://api.github.com/users/soda0289/events{/privacy}","received_events_url":"https://api.github.com/users/soda0289/received_events","type":"User","site_admin":false},"created_at":"2017-04-11T04:57:33Z","updated_at":"2017-04-11T04:57:33Z","body":"Looks like this is not a bug in typescript but a misuse of the typescript scanner. We need a better way to find comments. I have started one solution but need to spend more time finding one that covers all cases. Will post fix soon."}}
{"actor":{"display_login":"soda0289"}}