{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4286","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4286/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4286/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4286/events","html_url":"https://github.com/eslint/eslint/issues/4286","id":113965253,"number":4286,"title":"Bug in no-unused-vars when using it in a string template (var is passed in a function param)","user":{"login":"amalahussein","id":6717823,"avatar_url":"https://avatars.githubusercontent.com/u/6717823?v=3","gravatar_id":"","url":"https://api.github.com/users/amalahussein","html_url":"https://github.com/amalahussein","followers_url":"https://api.github.com/users/amalahussein/followers","following_url":"https://api.github.com/users/amalahussein/following{/other_user}","gists_url":"https://api.github.com/users/amalahussein/gists{/gist_id}","starred_url":"https://api.github.com/users/amalahussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amalahussein/subscriptions","organizations_url":"https://api.github.com/users/amalahussein/orgs","repos_url":"https://api.github.com/users/amalahussein/repos","events_url":"https://api.github.com/users/amalahussein/events{/privacy}","received_events_url":"https://api.github.com/users/amalahussein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T02:26:01Z","updated_at":"2015-10-29T02:26:02Z","closed_at":null,"body":"We are using a variable from a function param in a string template, but eslint isnt recognizing it as being used.\r\n\r\nGetting a no-unused-vars warning for the following code for 'verison':\r\n\r\nfunction stampBuild(version) {\r\n    gulp.src('build/public/index.html')\r\n        .pipe(insert.transform((contents) => {\r\n            return contents.replace('</body>\\n</html>', '<div>Build: ${version}</div>\\n</body>\\n</html>');\r\n        }))\r\n        .pipe(gulp.dest('build/public'));\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/152054285","html_url":"https://github.com/eslint/eslint/issues/4286#issuecomment-152054285","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4286","id":152054285,"user":{"login":"eslintbot","id":13383618,"avatar_url":"https://avatars.githubusercontent.com/u/13383618?v=3","gravatar_id":"","url":"https://api.github.com/users/eslintbot","html_url":"https://github.com/eslintbot","followers_url":"https://api.github.com/users/eslintbot/followers","following_url":"https://api.github.com/users/eslintbot/following{/other_user}","gists_url":"https://api.github.com/users/eslintbot/gists{/gist_id}","starred_url":"https://api.github.com/users/eslintbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslintbot/subscriptions","organizations_url":"https://api.github.com/users/eslintbot/orgs","repos_url":"https://api.github.com/users/eslintbot/repos","events_url":"https://api.github.com/users/eslintbot/events{/privacy}","received_events_url":"https://api.github.com/users/eslintbot/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T02:26:02Z","updated_at":"2015-10-29T02:26:02Z","body":"Thanks for the issue! If you're reporting a bug, please be sure to include:\n\n1. The version of ESLint you are using (run `eslint -v`)\n2. What you did (the source code and ESLint configuration)\n3. The actual ESLint output complete with numbers\n4. What you expected to happen instead\n\nRequesting a new rule? Please see [Proposing a New Rule](http://eslint.org/docs/developer-guide/contributing/new-rules) for instructions."}}