{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/276","repository_url":"https://api.github.com/repos/eslint/typescript-eslint-parser","labels_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/276/comments","events_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/276/events","html_url":"https://github.com/eslint/typescript-eslint-parser/issues/276","id":230120527,"number":276,"title":"False positive on `comma-dangle` with `RestProperty`","user":{"login":"sompylasar","id":498274,"avatar_url":"https://avatars1.githubusercontent.com/u/498274?v=3","gravatar_id":"","url":"https://api.github.com/users/sompylasar","html_url":"https://github.com/sompylasar","followers_url":"https://api.github.com/users/sompylasar/followers","following_url":"https://api.github.com/users/sompylasar/following{/other_user}","gists_url":"https://api.github.com/users/sompylasar/gists{/gist_id}","starred_url":"https://api.github.com/users/sompylasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sompylasar/subscriptions","organizations_url":"https://api.github.com/users/sompylasar/orgs","repos_url":"https://api.github.com/users/sompylasar/repos","events_url":"https://api.github.com/users/sompylasar/events{/privacy}","received_events_url":"https://api.github.com/users/sompylasar/received_events","type":"User","site_admin":false},"labels":[{"id":295591815,"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-20T01:10:35Z","updated_at":"2017-05-20T16:27:26Z","closed_at":null,"body":"**What version of TypeScript are you using?**\r\n`2.3.2`\r\n\r\n**What version of `typescript-eslint-parser` are you using?**\r\n`3.0.0`\r\n\r\n**What code were you trying to parse?**\r\nCode is closed-source, but the gist is this:\r\n```\r\nconst SomeComponent = withStyles(styles)(({\r\n  children,\r\n  ...props\r\n}) => {\r\n```\r\n\r\n**What did you expect to happen?**\r\nNo warning for missing comma at the `...props` line.\r\n\r\n**What happened?**\r\n`warning  Missing trailing comma  comma-dangle` for the `...props` line.\r\n\r\nEslint recently disabled the trailing comma after the \"RestProperty\" but the parser likely generates \"Property\" node (based on my hacked-in logging from within the `comma-dangle` rule).\r\n\r\nThis warning: https://github.com/eslint/eslint/blob/70367d1a48c8c71f9fbde05da4a7a626a59967fd/lib/rules/comma-dangle.js#L266\r\n\r\nHere's the check for \"RestProperty\" which seems to fail because just \"Property\" is there instead:\r\nhttps://github.com/eslint/eslint/blob/70367d1a48c8c71f9fbde05da4a7a626a59967fd/lib/rules/comma-dangle.js#L34-L40\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/comments/302883523","html_url":"https://github.com/eslint/typescript-eslint-parser/issues/276#issuecomment-302883523","issue_url":"https://api.github.com/repos/eslint/typescript-eslint-parser/issues/276","id":302883523,"user":{"login":"soda0289","id":2373964,"avatar_url":"https://avatars2.githubusercontent.com/u/2373964?v=3","gravatar_id":"","url":"https://api.github.com/users/soda0289","html_url":"https://github.com/soda0289","followers_url":"https://api.github.com/users/soda0289/followers","following_url":"https://api.github.com/users/soda0289/following{/other_user}","gists_url":"https://api.github.com/users/soda0289/gists{/gist_id}","starred_url":"https://api.github.com/users/soda0289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soda0289/subscriptions","organizations_url":"https://api.github.com/users/soda0289/orgs","repos_url":"https://api.github.com/users/soda0289/repos","events_url":"https://api.github.com/users/soda0289/events{/privacy}","received_events_url":"https://api.github.com/users/soda0289/received_events","type":"User","site_admin":false},"created_at":"2017-05-20T16:27:26Z","updated_at":"2017-05-20T16:27:26Z","body":"Thanks for the report.\r\n\r\nWe are using the incorrect node type. It should be `ExperimentalRestProperty` and we are using `Property` type."}}
{"actor":{"display_login":"soda0289"}}