{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5895","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5895/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5895/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5895/events","html_url":"https://github.com/eslint/eslint/issues/5895","id":149416435,"number":5895,"title":"ES7 decorator: TypeError: Cannot read property 'type' of undefined","user":{"login":"DanSnow","id":5575082,"avatar_url":"https://avatars.githubusercontent.com/u/5575082?v=3","gravatar_id":"","url":"https://api.github.com/users/DanSnow","html_url":"https://github.com/DanSnow","followers_url":"https://api.github.com/users/DanSnow/followers","following_url":"https://api.github.com/users/DanSnow/following{/other_user}","gists_url":"https://api.github.com/users/DanSnow/gists{/gist_id}","starred_url":"https://api.github.com/users/DanSnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanSnow/subscriptions","organizations_url":"https://api.github.com/users/DanSnow/orgs","repos_url":"https://api.github.com/users/DanSnow/repos","events_url":"https://api.github.com/users/DanSnow/events{/privacy}","received_events_url":"https://api.github.com/users/DanSnow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T10:26:37Z","updated_at":"2016-04-19T10:26:37Z","closed_at":null,"body":"Hello, I'm using eslint v2.8.0, with babel-eslint.\r\n\r\nMy configure:\r\n```json\r\n{\r\n  \"parser\"  : \"babel-eslint\",\r\n  \"extends\" : [\r\n    \"standard\",\r\n    \"standard-react\"\r\n  ],\r\n  \"env\"     : {\r\n    \"browser\" : true\r\n  },\r\n  \"globals\" : {\r\n    \"__DEV__\"      : false,\r\n    \"__PROD__\"     : false,\r\n    \"__DEBUG__\"    : false,\r\n    \"__DEBUG_NEW_WINDOW__\" : false,\r\n    \"__BASENAME__\" : false\r\n  },\r\n  \"rules\": {\r\n    \"semi\" : [2, \"always\"],\r\n    \"space-before-function-paren\" : [2, \"never\"],\r\n    \"react/jsx-closing-bracket-location\": [2, \"after-props\"],\r\n    \"arrow-parens\": [0, \"as-needed\"],\r\n    \"react/jsx-curly-spacing\": [2, \"always\"],\r\n    \"quotes\": [2, \"single\", \"avoid-escape\"]\r\n  }\r\n}\r\n```\r\n\r\nHere is the code:\r\n```js\r\nclass Test {\r\n  @autobind\r\n  foo() {\r\n  }\r\n}\r\n```\r\n\r\nIt should report decorator \"autobind\" undefined, but it crash.\r\n\r\n```\r\nCannot read property 'type' of undefined\r\nTypeError: Cannot read property 'type' of undefined\r\n    at hasTypeOfOperator (node_modules/eslint/lib/rules/no-undef.js:21:18)\r\n    at /home/snow/Desktop/Juice/node_modules/eslint/lib/rules/no-undef.js:39:40\r\n    at Array.forEach (native)\r\n    at EventEmitter.Program:exit (node_modules/eslint/lib/rules/no-undef.js:36:33)\r\n    at emitOne (events.js:95:20)\r\n    at EventEmitter.emit (events.js:182:7)\r\n    at NodeEventGenerator.leaveNode (node_modules/eslint/lib/util/node-event-generator.js:51:22)\r\n    at CodePathAnalyzer.leaveNode (node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:629:23)\r\n    at CommentEventGenerator.leaveNode (node_modules/eslint/lib/util/comment-event-generator.js:112:23)\r\n    at Controller.traverser.traverse.leave (node_modules/eslint/lib/eslint.js:890:36)\r\n\r\n```\r\n"}}