{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5021","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5021/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5021/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5021/events","html_url":"https://github.com/eslint/eslint/issues/5021","id":127958316,"number":5021,"title":"false positive with flow type and argument desctructuring","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T16:06:24Z","updated_at":"2016-01-21T17:16:51Z","closed_at":"2016-01-21T17:16:51Z","body":"Assuming the following code snippet:\r\n```js\r\ntype Props = { baseUrl: string };\r\n\r\nexport default ({ baseUrl, anchor, inspectUtilities }: Props) => {\r\n  return null;\r\n};\r\n```\r\n\r\neslint reports 2 warnings:\r\n\r\n```\r\n  3:56  error  \"Props\" is already declared in the upper scope  no-shadow\r\n  3:56  error  \"Props\" is defined but never used               no-unused-vars\r\n```\r\n\r\nThere should be no warnings, as both babel and flow correctly work with this typeannotation.\r\n\r\n---\r\n\r\neslint version: v1.10.3\r\nplugins: react\r\nos: mac os x 10.11\r\n\r\n---\r\n\r\n.eslintrc:\r\n```json\r\n{\r\n  \"extends\": \"airbnb\",\r\n  \"parser\": \"babel-eslint\",\r\n  \"env\": {\r\n    \"node\": true\r\n  },\r\n  \"rules\": {\r\n    \"react/prop-types\": 0\r\n  },\r\n  \"globals\": {\r\n    \"ReactElement\": false\r\n  }\r\n}\r\n```\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30084824-false-positive-with-flow-type-and-argument-desctructuring?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/173641859","html_url":"https://github.com/eslint/eslint/issues/5021#issuecomment-173641859","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5021","id":173641859,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T17:16:51Z","updated_at":"2016-01-21T17:16:51Z","body":"We don't natively support Flow. I'd suggest filing an issue with babel-eslint."}}