{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/6325","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/6325/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/6325/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/6325/events","html_url":"https://github.com/eslint/eslint/issues/6325","id":158639346,"number":6325,"title":"Automatically add exported variable as global in importing file","user":{"login":"TimvdLippe","id":5948271,"avatar_url":"https://avatars.githubusercontent.com/u/5948271?v=3","gravatar_id":"","url":"https://api.github.com/users/TimvdLippe","html_url":"https://github.com/TimvdLippe","followers_url":"https://api.github.com/users/TimvdLippe/followers","following_url":"https://api.github.com/users/TimvdLippe/following{/other_user}","gists_url":"https://api.github.com/users/TimvdLippe/gists{/gist_id}","starred_url":"https://api.github.com/users/TimvdLippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimvdLippe/subscriptions","organizations_url":"https://api.github.com/users/TimvdLippe/orgs","repos_url":"https://api.github.com/users/TimvdLippe/repos","events_url":"https://api.github.com/users/TimvdLippe/events{/privacy}","received_events_url":"https://api.github.com/users/TimvdLippe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-06T09:47:10Z","updated_at":"2016-06-06T19:57:24Z","closed_at":null,"body":"**What version of ESLint are you using?**\r\nv2.11.1\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?**\r\ndefault\r\n\r\n**The problem you want to solve.**\r\nWhenever I set a variable to be `/**exported VARNAME*/` I need to redeclare this `/**global VARNAME*/` in every file that uses this file. E.g. I put an exported variable bar (`/**exported bar*/`) in `foo.js`. Whenever I include `<script src=\"foo.js\"></script>` I have to redeclare `/**global bar*/` in this file.\r\n\r\nWhenever I change the name of the variable or use bar anywhere else, I have to update/add this global annotation.\r\n\r\n**Your take on the correct solution to problem.**\r\nIt would greatly improve the readability and maintenance if this would be automatically deduced from the existing source code annotations."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/224069794","html_url":"https://github.com/eslint/eslint/issues/6325#issuecomment-224069794","issue_url":"https://api.github.com/repos/eslint/eslint/issues/6325","id":224069794,"user":{"login":"TimvdLippe","id":5948271,"avatar_url":"https://avatars.githubusercontent.com/u/5948271?v=3","gravatar_id":"","url":"https://api.github.com/users/TimvdLippe","html_url":"https://github.com/TimvdLippe","followers_url":"https://api.github.com/users/TimvdLippe/followers","following_url":"https://api.github.com/users/TimvdLippe/following{/other_user}","gists_url":"https://api.github.com/users/TimvdLippe/gists{/gist_id}","starred_url":"https://api.github.com/users/TimvdLippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimvdLippe/subscriptions","organizations_url":"https://api.github.com/users/TimvdLippe/orgs","repos_url":"https://api.github.com/users/TimvdLippe/repos","events_url":"https://api.github.com/users/TimvdLippe/events{/privacy}","received_events_url":"https://api.github.com/users/TimvdLippe/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T19:57:24Z","updated_at":"2016-06-06T19:57:24Z","body":"Sadly I have no experience with ESLint core, I am merely an end-user. My programmer intuition thinks that a post-process step removing all \"incorrect\" rules would be the most performant. I understand the architectural limitations, maybe this feature is possible in a later version of ESLint where such features can be implemented?"}}
{"actor":{"display_login":"TimvdLippe"}}