{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5426","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5426/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5426/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5426/events","html_url":"https://github.com/eslint/eslint/issues/5426","id":137038337,"number":5426,"title":"error in no-useless-constructor","user":{"login":"TrejGun","id":185285,"avatar_url":"https://avatars.githubusercontent.com/u/185285?v=3","gravatar_id":"","url":"https://api.github.com/users/TrejGun","html_url":"https://github.com/TrejGun","followers_url":"https://api.github.com/users/TrejGun/followers","following_url":"https://api.github.com/users/TrejGun/following{/other_user}","gists_url":"https://api.github.com/users/TrejGun/gists{/gist_id}","starred_url":"https://api.github.com/users/TrejGun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrejGun/subscriptions","organizations_url":"https://api.github.com/users/TrejGun/orgs","repos_url":"https://api.github.com/users/TrejGun/repos","events_url":"https://api.github.com/users/TrejGun/events{/privacy}","received_events_url":"https://api.github.com/users/TrejGun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"faceleg","id":1000759,"avatar_url":"https://avatars.githubusercontent.com/u/1000759?v=3","gravatar_id":"","url":"https://api.github.com/users/faceleg","html_url":"https://github.com/faceleg","followers_url":"https://api.github.com/users/faceleg/followers","following_url":"https://api.github.com/users/faceleg/following{/other_user}","gists_url":"https://api.github.com/users/faceleg/gists{/gist_id}","starred_url":"https://api.github.com/users/faceleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faceleg/subscriptions","organizations_url":"https://api.github.com/users/faceleg/orgs","repos_url":"https://api.github.com/users/faceleg/repos","events_url":"https://api.github.com/users/faceleg/events{/privacy}","received_events_url":"https://api.github.com/users/faceleg/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-28T10:58:23Z","updated_at":"2016-02-29T01:33:55Z","closed_at":null,"body":"**What version of ESLint are you using?**\r\n2.2.0\r\n\r\n**What configuration and parser (Espree, Babel-ESLint, etc.) are you using?**\r\nbabel-eslint\r\n\r\n**What did you do? Please include the actual source code causing the issue.**\r\n```js\r\nclass A {}\r\n\r\nclass B extends A {\r\n\tconstructor() {\r\n\t\tsuper(...arguments);\r\n\t}\r\n}\r\n```\r\n\r\n**What did you expect to happen?**\r\neslint will exit with code 0\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n```\r\n...eslint/lib/rules/no-useless-constructor.js:33\r\n                ctorParams[index].type === \"RestElement\" &&\r\n                                 ^\r\n\r\nTypeError: Cannot read property 'type' of undefined\r\n    at ...eslint/lib/rules/no-useless-constructor.js:33:34\r\n    at Array.every (native)\r\n    at isRedundantSuperCall (...eslint/lib/rules/no-useless-constructor.js:29:45)\r\n    at EventEmitter.checkForConstructor (...eslint/lib/rules/no-useless-constructor.js:52:46)\r\n    at emitOne (events.js:95:20)\r\n    at EventEmitter.emit (events.js:182:7)\r\n    at NodeEventGenerator.enterNode (...eslint/lib/util/node-event-generator.js:42:22)\r\n    at CodePathAnalyzer.enterNode (...eslint/lib/code-path-analysis/code-path-analyzer.js:591:23)\r\n    at CommentEventGenerator.enterNode (...eslint/lib/util/comment-event-generator.js:98:23)\r\n    at Controller.controller.traverse.enter (...eslint/lib/eslint.js:839:36)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/189991968","html_url":"https://github.com/eslint/eslint/issues/5426#issuecomment-189991968","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5426","id":189991968,"user":{"login":"TrejGun","id":185285,"avatar_url":"https://avatars.githubusercontent.com/u/185285?v=3","gravatar_id":"","url":"https://api.github.com/users/TrejGun","html_url":"https://github.com/TrejGun","followers_url":"https://api.github.com/users/TrejGun/followers","following_url":"https://api.github.com/users/TrejGun/following{/other_user}","gists_url":"https://api.github.com/users/TrejGun/gists{/gist_id}","starred_url":"https://api.github.com/users/TrejGun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrejGun/subscriptions","organizations_url":"https://api.github.com/users/TrejGun/orgs","repos_url":"https://api.github.com/users/TrejGun/repos","events_url":"https://api.github.com/users/TrejGun/events{/privacy}","received_events_url":"https://api.github.com/users/TrejGun/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T01:33:55Z","updated_at":"2016-02-29T01:33:55Z","body":"sorry here is `.eslintrc` to reproduce the issue\r\n```.json\r\n{\r\n  \"parser\": \"babel-eslint\",\r\n  \"rules\": {\r\n    \"no-useless-constructor\": 2\r\n  }\r\n}\r\n```"}}