{"action":"opened","issue":{"url":"https://api.github.com/repos/BenoitZugmeyer/eslint-plugin-html/issues/94","repository_url":"https://api.github.com/repos/BenoitZugmeyer/eslint-plugin-html","labels_url":"https://api.github.com/repos/BenoitZugmeyer/eslint-plugin-html/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/BenoitZugmeyer/eslint-plugin-html/issues/94/comments","events_url":"https://api.github.com/repos/BenoitZugmeyer/eslint-plugin-html/issues/94/events","html_url":"https://github.com/BenoitZugmeyer/eslint-plugin-html/issues/94","id":317402871,"number":94,"title":"For <script> tags which have a 'src', insert a comment into the generated code","user":{"login":"Standard8","id":520844,"avatar_url":"https://avatars0.githubusercontent.com/u/520844?v=4","gravatar_id":"","url":"https://api.github.com/users/Standard8","html_url":"https://github.com/Standard8","followers_url":"https://api.github.com/users/Standard8/followers","following_url":"https://api.github.com/users/Standard8/following{/other_user}","gists_url":"https://api.github.com/users/Standard8/gists{/gist_id}","starred_url":"https://api.github.com/users/Standard8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Standard8/subscriptions","organizations_url":"https://api.github.com/users/Standard8/orgs","repos_url":"https://api.github.com/users/Standard8/repos","events_url":"https://api.github.com/users/Standard8/events{/privacy}","received_events_url":"https://api.github.com/users/Standard8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T21:31:51Z","updated_at":"2018-04-24T21:31:51Z","closed_at":null,"author_association":"NONE","body":"For a rule I'm working on, I'd like to be able to detect imported scripts, so that I can go and look them (mainly for working out about globals, unfortunately we don't yet have a proper module import system in use). We have a work around, but that involves manually duplicating the items imported via the scripts tags into comments.\r\n\r\nUnfortunately, eslint-plugin-html strips out all the useful html code before I get to it (context.getSourceCode().getText() just returns the javascript), and I'd rather not go and open the file again.\r\n\r\nWould it be possible to get a comment inserted in the code passed to ESLint? e.g. `// script src=\"...\" type=\"...\"`\r\n\r\nI took a very brief look, but haven't yet worked out if/how this could be done."}}
{"actor":{"display_login":"Standard8"}}