{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1978","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1978/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1978/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1978/events","html_url":"https://github.com/eslint/eslint/issues/1978","id":60275563,"number":1978,"title":"no-undef error on ES6 import","user":{"login":"ai","id":19343,"avatar_url":"https://avatars.githubusercontent.com/u/19343?v=3","gravatar_id":"","url":"https://api.github.com/users/ai","html_url":"https://github.com/ai","followers_url":"https://api.github.com/users/ai/followers","following_url":"https://api.github.com/users/ai/following{/other_user}","gists_url":"https://api.github.com/users/ai/gists{/gist_id}","starred_url":"https://api.github.com/users/ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ai/subscriptions","organizations_url":"https://api.github.com/users/ai/orgs","repos_url":"https://api.github.com/users/ai/repos","events_url":"https://api.github.com/users/ai/events{/privacy}","received_events_url":"https://api.github.com/users/ai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-03-08T20:52:37Z","updated_at":"2015-03-12T14:38:56Z","closed_at":null,"body":"As I understand ESLint doesn’t understand that `import` create variable.\r\n\r\nSo I get a `'Warning' is not defined` error on line 2 of this code:\r\n\r\n```js\r\nimport Warning from '../lib/warning';\r\nvar warn = new Warning('text');\r\n```\r\n\r\nI uses eslint 0.16.1 and my `.eslintrc` is:\r\n\r\n```js\r\n{\r\n    \"ecmaFeatures\": {\r\n        \"modules\": true,\r\n        \"module\":  true\r\n    },\r\n    \"env\": {\r\n        \"mocha\": true,\r\n        \"node\":  true,\r\n        \"es6\":   true\r\n    }\r\n}\r\n```\r\n\r\n/cc @nzakas \r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9333291-no-undef-error-on-es6-import?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/78492079","html_url":"https://github.com/eslint/eslint/issues/1978#issuecomment-78492079","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1978","id":78492079,"user":{"login":"ivanoats","id":4672,"avatar_url":"https://avatars.githubusercontent.com/u/4672?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanoats","html_url":"https://github.com/ivanoats","followers_url":"https://api.github.com/users/ivanoats/followers","following_url":"https://api.github.com/users/ivanoats/following{/other_user}","gists_url":"https://api.github.com/users/ivanoats/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanoats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanoats/subscriptions","organizations_url":"https://api.github.com/users/ivanoats/orgs","repos_url":"https://api.github.com/users/ivanoats/repos","events_url":"https://api.github.com/users/ivanoats/events{/privacy}","received_events_url":"https://api.github.com/users/ivanoats/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T14:38:56Z","updated_at":"2015-03-12T14:38:56Z","body":"My work-around was to go into node_modules/eslint/ and edit package.json to require escope 2.0.7 then nom install escope@2.0.7 from there. This might have to be done in your global packages, too, for me it was `/Users/ivan/.nvm/v0.10.36/lib/node_modules/eslint`"}}