{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/684","labels_url":"https://api.github.com/repos/palantir/tslint/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/684/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/684/events","html_url":"https://github.com/palantir/tslint/issues/684","id":108183852,"number":684,"title":"Imports that are exported are described as unused","user":{"login":"SonofNun15","id":4964780,"avatar_url":"https://avatars.githubusercontent.com/u/4964780?v=3","gravatar_id":"","url":"https://api.github.com/users/SonofNun15","html_url":"https://github.com/SonofNun15","followers_url":"https://api.github.com/users/SonofNun15/followers","following_url":"https://api.github.com/users/SonofNun15/following{/other_user}","gists_url":"https://api.github.com/users/SonofNun15/gists{/gist_id}","starred_url":"https://api.github.com/users/SonofNun15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonofNun15/subscriptions","organizations_url":"https://api.github.com/users/SonofNun15/orgs","repos_url":"https://api.github.com/users/SonofNun15/repos","events_url":"https://api.github.com/users/SonofNun15/events{/privacy}","received_events_url":"https://api.github.com/users/SonofNun15/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/P1","name":"P1","color":"dddddd"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Blocked","name":"Status: Blocked","color":"233445"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Bug","name":"Type: Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"JKillian","id":1400151,"avatar_url":"https://avatars.githubusercontent.com/u/1400151?v=3","gravatar_id":"","url":"https://api.github.com/users/JKillian","html_url":"https://github.com/JKillian","followers_url":"https://api.github.com/users/JKillian/followers","following_url":"https://api.github.com/users/JKillian/following{/other_user}","gists_url":"https://api.github.com/users/JKillian/gists{/gist_id}","starred_url":"https://api.github.com/users/JKillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKillian/subscriptions","organizations_url":"https://api.github.com/users/JKillian/orgs","repos_url":"https://api.github.com/users/JKillian/repos","events_url":"https://api.github.com/users/JKillian/events{/privacy}","received_events_url":"https://api.github.com/users/JKillian/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/palantir/tslint/milestones/11","html_url":"https://github.com/palantir/tslint/milestones/TSLint%203.x","labels_url":"https://api.github.com/repos/palantir/tslint/milestones/11/labels","id":1427659,"number":11,"title":"TSLint 3.x","description":"","creator":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":4,"state":"open","created_at":"2015-11-24T17:00:52Z","updated_at":"2016-01-16T23:44:20Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-09-24T18:09:02Z","updated_at":"2016-01-16T23:44:20Z","closed_at":"2016-01-16T23:44:20Z","body":"Given:\r\n```ts\r\nimport * as myLib from 'myLib';\r\n\r\nexport { myLib };\r\n```\r\n\r\ntslint gives the following error:\r\n```\r\napp.ts[1, 13]: unused variable: 'myLib'\r\n```\r\n\r\nThis is a legitimate way to import / export because it allows a component to be exported instead of flattening the hierarchy with a re-export (`export * from 'myLib'`) or exporting the contents of myLib (`export { myLibChild1, myLibChild2 as appChild } from 'myLib';`)"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/172274304","html_url":"https://github.com/palantir/tslint/issues/684#issuecomment-172274304","issue_url":"https://api.github.com/repos/palantir/tslint/issues/684","id":172274304,"user":{"login":"JKillian","id":1400151,"avatar_url":"https://avatars.githubusercontent.com/u/1400151?v=3","gravatar_id":"","url":"https://api.github.com/users/JKillian","html_url":"https://github.com/JKillian","followers_url":"https://api.github.com/users/JKillian/followers","following_url":"https://api.github.com/users/JKillian/following{/other_user}","gists_url":"https://api.github.com/users/JKillian/gists{/gist_id}","starred_url":"https://api.github.com/users/JKillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKillian/subscriptions","organizations_url":"https://api.github.com/users/JKillian/orgs","repos_url":"https://api.github.com/users/JKillian/repos","events_url":"https://api.github.com/users/JKillian/events{/privacy}","received_events_url":"https://api.github.com/users/JKillian/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T23:44:20Z","updated_at":"2016-01-16T23:44:20Z","body":"This should be fixed now if you use `typescript@1.8.0-dev.20160116` or newer alongside of TSLint."}}