{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel-eslint/issues/71","labels_url":"https://api.github.com/repos/babel/babel-eslint/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-eslint/issues/71/comments","events_url":"https://api.github.com/repos/babel/babel-eslint/issues/71/events","html_url":"https://github.com/babel/babel-eslint/issues/71","id":68426337,"number":71,"title":"Cannot read property 'type' of undefined with ES Class Properties","user":{"login":"skevy","id":131916,"avatar_url":"https://avatars.githubusercontent.com/u/131916?v=3","gravatar_id":"","url":"https://api.github.com/users/skevy","html_url":"https://github.com/skevy","followers_url":"https://api.github.com/users/skevy/followers","following_url":"https://api.github.com/users/skevy/following{/other_user}","gists_url":"https://api.github.com/users/skevy/gists{/gist_id}","starred_url":"https://api.github.com/users/skevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skevy/subscriptions","organizations_url":"https://api.github.com/users/skevy/orgs","repos_url":"https://api.github.com/users/skevy/repos","events_url":"https://api.github.com/users/skevy/events{/privacy}","received_events_url":"https://api.github.com/users/skevy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-14T16:13:15Z","updated_at":"2015-05-05T02:34:38Z","closed_at":null,"body":"Hi there - \r\n\r\nThis code:\r\n\r\n```javascript\r\nclass TestClass {\r\n  aMethod = (e) => {\r\n    return true;\r\n  }\r\n}\r\n```\r\n\r\ncauses eslint to fail (with babel-eslint turned on, of course) with:\r\n\r\n```\r\n/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:121\r\n                if (type === \"Parameter\" && def.node.parent.type === \"Property\r\n                                                           ^\r\nTypeError: Cannot read property 'type' of undefined\r\n    at getUnusedLocals (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:121:60)\r\n    at Array.map (native)\r\n    at getUnusedLocals (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:141:58)\r\n    at Array.map (native)\r\n    at getUnusedLocals (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:141:58)\r\n    at Array.map (native)\r\n    at getUnusedLocals (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:141:58)\r\n    at Array.map (native)\r\n    at getUnusedLocals (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:141:58)\r\n    at EventEmitter.Program:exit (/Users/adam/.nvm/v0.12.0/lib/node_modules/eslint/lib/rules/no-unused-vars.js:147:26)\r\n```\r\n\r\nThis is using eslint 0.19.0 and babel-eslint 3.0.1."},"comment":{"url":"https://api.github.com/repos/babel/babel-eslint/issues/comments/98914068","html_url":"https://github.com/babel/babel-eslint/issues/71#issuecomment-98914068","issue_url":"https://api.github.com/repos/babel/babel-eslint/issues/71","id":98914068,"user":{"login":"danro","id":393520,"avatar_url":"https://avatars.githubusercontent.com/u/393520?v=3","gravatar_id":"","url":"https://api.github.com/users/danro","html_url":"https://github.com/danro","followers_url":"https://api.github.com/users/danro/followers","following_url":"https://api.github.com/users/danro/following{/other_user}","gists_url":"https://api.github.com/users/danro/gists{/gist_id}","starred_url":"https://api.github.com/users/danro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danro/subscriptions","organizations_url":"https://api.github.com/users/danro/orgs","repos_url":"https://api.github.com/users/danro/repos","events_url":"https://api.github.com/users/danro/events{/privacy}","received_events_url":"https://api.github.com/users/danro/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T02:34:38Z","updated_at":"2015-05-05T02:34:38Z","body":"+1 same error here.. my use case:\r\n```js\r\nclass Foo {\r\n  static props = {\r\n    bar: staticTest()\r\n  };\r\n}\r\n```"}}