{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3999","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3999/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3999/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3999/events","html_url":"https://github.com/eslint/eslint/issues/3999","id":109313375,"number":3999,"title":"Unexpected token < for script tag in HTML file","user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/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":8,"created_at":"2015-10-01T14:37:34Z","updated_at":"2015-10-01T15:42:24Z","closed_at":null,"body":"When I have a script tag in a HTML file, ESLint gives me this error:\r\n\r\n```\r\nCannot find module 'eslint-plugin-html'\r\n```\r\n\r\nThat's fine. When I use the `eslint:recommended preset`, however:\r\n\r\n```\r\n// .eslintrc\r\n{ \"extends\": \"eslint:recommended\" }\r\n```\r\n\r\nI get this error:\r\n\r\n```\r\nUnexpected token <\r\n```\r\n\r\nWhy is ESLint trying to lint the HTML file without the HTML plugin, only when I enable the preset?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27089554-unexpected-token-for-script-tag-in-html-file?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/144766458","html_url":"https://github.com/eslint/eslint/issues/3999#issuecomment-144766458","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3999","id":144766458,"user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T15:42:24Z","updated_at":"2015-10-01T15:42:24Z","body":"I don't actually need to add the plugin to my ESLint config for it to pick it up, oddly. The error occurs with the exact code described above, whenever there's a copy of `eslint-plugin-react` inside `node_modules`."}}