{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/48","labels_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/48/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/48/events","html_url":"https://github.com/AtomLinter/linter-eslint/issues/48","id":64310957,"number":48,"title":"Uncaught TypeError: Cannot read property 'type' of undefined","user":{"login":"ro-ka","id":840022,"avatar_url":"https://avatars.githubusercontent.com/u/840022?v=3","gravatar_id":"","url":"https://api.github.com/users/ro-ka","html_url":"https://github.com/ro-ka","followers_url":"https://api.github.com/users/ro-ka/followers","following_url":"https://api.github.com/users/ro-ka/following{/other_user}","gists_url":"https://api.github.com/users/ro-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/ro-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro-ka/subscriptions","organizations_url":"https://api.github.com/users/ro-ka/orgs","repos_url":"https://api.github.com/users/ro-ka/repos","events_url":"https://api.github.com/users/ro-ka/events{/privacy}","received_events_url":"https://api.github.com/users/ro-ka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T16:20:15Z","updated_at":"2015-03-26T07:55:01Z","closed_at":null,"body":"1. Editing the following file:\r\n\r\n```\r\nimport Ember from 'ember';\r\nimport {\r\n  moduleForComponent,\r\n  test\r\n} from 'ember-qunit';\r\n\r\nmoduleForComponent('colorscheme-select', 'ColorschemeSelectComponent', {\r\n  setup: function() {\r\n    this.container.register('view:select', Ember.Select);\r\n  }\r\n});\r\n```\r\n\r\n**Atom Version**: 0.187.0\r\n**System**: Mac OS X 10.10.2\r\n**Thrown From**: [linter-eslint](https://github.com/AtomLinter/linter-eslint) package, v0.5.0\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'type' of undefined\r\n\r\n```\r\nAt /Users/me/project/node_modules/eslint/lib/rules/no-unused-vars.js:43\r\n\r\nTypeError: Cannot read property 'type' of undefined\r\n  at isExported (/Users/me/project/node_modules/eslint/lib/rules/no-unused-vars.js:43:27)\r\n  at EventEmitter.Program:exit (/Users/me/project/node_modules/eslint/lib/rules/no-unused-vars.js:120:70)\r\n  at EventEmitter.emit (events.js:138:20)\r\n  at Controller.controller.traverse.leave (/Users/me/project/node_modules/eslint/lib/eslint.js:743:25)\r\n  at Controller.__execute (/Users/me/project/node_modules/eslint/node_modules/estraverse/estraverse.js:393:31)\r\n  at Controller.traverse (/Users/me/project/node_modules/eslint/node_modules/estraverse/estraverse.js:481:28)\r\n  at EventEmitter.module.exports.api.verify (/Users/me/project/node_modules/eslint/lib/eslint.js:728:24)\r\n  at LinterESLint.lintFile (/Users/me/.atom/packages/linter-eslint/lib/linter-eslint.coffee:78:21)\r\n  at /Users/me/.atom/packages/linter/lib/linter-view.coffee:158:18\r\n  at Array.forEach (native)\r\n  at /Users/me/.atom/packages/linter/lib/linter-view.coffee:157:18\r\n  at FSReqWrap.oncomplete (fs.js:100:15)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:47.1 editor:move-to-end-of-word (atom-text-editor.editor.mini)\r\n     -0:46.0 core:backspace (atom-text-editor.editor.mini)\r\n     -0:44.8 core:confirm (atom-text-editor.editor.mini)\r\n     -0:43.8 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -0:43.8 core:cancel (atom-text-editor.editor.is-focused)\r\n     -0:40.6 core:save (atom-text-editor.editor.is-focused)\r\n  2x -0:40.1 core:close (atom-text-editor.editor.is-focused)\r\n  4x -0:30.3 editor:move-to-beginning-of-word (atom-text-editor.editor.mini)\r\n     -0:27.6 core:confirm (atom-text-editor.editor.mini)\r\n  2x -0:19.3 editor:move-to-beginning-of-word (atom-text-editor.editor)\r\n  4x -0:17.2 editor:move-to-end-of-word (atom-text-editor.editor)\r\n  5x -0:16.0 core:move-right (atom-text-editor.editor)\r\n  5x -0:13.7 core:move-left (atom-text-editor.editor)\r\n     -0:12.7 core:backspace (atom-text-editor.editor)\r\n     -0:11.6 autocomplete-plus:cancel (atom-text-editor.editor)\r\n  3x -0:10.5 core:save (atom-text-editor.editor)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"themes\": [\r\n      \"one-dark-ui\",\r\n      \"spacegray-eighties-dark-syntax\"\r\n    ],\r\n    \"audioBeep\": false,\r\n    \"disabledPackages\": [\r\n      \"language-objective-c\",\r\n      \"background-tips\",\r\n      \"language-c\",\r\n      \"language-clojure\",\r\n      \"language-coffee-script\",\r\n      \"language-csharp\",\r\n      \"language-perl\",\r\n      \"language-python\",\r\n      \"language-toml\"\r\n    ]\r\n  },\r\n  \"linter-eslint\": {\r\n    \"disableWhenNoEslintrcFileInPath\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nStylus, v0.6.2\r\natom-beautify, v0.23.0\r\nautocomplete-plus, v2.6.0\r\nautocomplete-snippets, v1.2.0\r\ndocblockr, v0.6.3\r\neditorconfig, v0.3.3\r\nember-snippets, v1.0.0\r\nfile-icons, v1.5.2\r\nlanguage-jade, v0.3.0\r\nlinter, v0.12.0\r\nlinter-csslint, v0.0.11\r\nlinter-eslint, v0.5.0\r\nminimap, v4.6.0\r\nreact, v0.10.1\r\nspacegray-eighties-dark-syntax, v0.7.1\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/comments/86381612","html_url":"https://github.com/AtomLinter/linter-eslint/issues/48#issuecomment-86381612","issue_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/48","id":86381612,"user":{"login":"jfaissolle","id":941866,"avatar_url":"https://avatars.githubusercontent.com/u/941866?v=3","gravatar_id":"","url":"https://api.github.com/users/jfaissolle","html_url":"https://github.com/jfaissolle","followers_url":"https://api.github.com/users/jfaissolle/followers","following_url":"https://api.github.com/users/jfaissolle/following{/other_user}","gists_url":"https://api.github.com/users/jfaissolle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfaissolle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfaissolle/subscriptions","organizations_url":"https://api.github.com/users/jfaissolle/orgs","repos_url":"https://api.github.com/users/jfaissolle/repos","events_url":"https://api.github.com/users/jfaissolle/events{/privacy}","received_events_url":"https://api.github.com/users/jfaissolle/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T07:55:01Z","updated_at":"2015-03-26T07:55:01Z","body":"From the stack trace, this is most certainly an eslint bug."}}