{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10767","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10767/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10767/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10767/events","html_url":"https://github.com/eslint/eslint/issues/10767","id":351186513,"node_id":"MDU6SXNzdWUzNTExODY1MTM=","number":10767,"title":"no-use-before-define with global variable reassign","user":{"login":"Mantish","id":442272,"node_id":"MDQ6VXNlcjQ0MjI3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/442272?v=4","gravatar_id":"","url":"https://api.github.com/users/Mantish","html_url":"https://github.com/Mantish","followers_url":"https://api.github.com/users/Mantish/followers","following_url":"https://api.github.com/users/Mantish/following{/other_user}","gists_url":"https://api.github.com/users/Mantish/gists{/gist_id}","starred_url":"https://api.github.com/users/Mantish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mantish/subscriptions","organizations_url":"https://api.github.com/users/Mantish/orgs","repos_url":"https://api.github.com/users/Mantish/repos","events_url":"https://api.github.com/users/Mantish/events{/privacy}","received_events_url":"https://api.github.com/users/Mantish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-16T12:36:20Z","updated_at":"2018-08-16T12:36:20Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).\r\n\r\n    This template is for bug reports. If you are here for another reason, please see below:\r\n\r\n    1. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\r\n    2. To request a rule change: https://eslint.org/docs/developer-guide/contributing/rule-changes\r\n    3. To request a change that is not a bug fix, rule change, or new rule: https://eslint.org/docs/developer-guide/contributing/changes\r\n    4. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\n    Note that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\nHi,\r\n`no-use-before-define` triggers an error for this kind of code:\r\n\r\n`var global = global || 'default';`\r\n\r\nThe variable is defined in the `globals` section of the eslint file. So in my opinion, it shouldn't trigger the error.\r\n\r\nWhat do you think?\r\n\r\n**My environment**\r\n\r\n* **ESLint Version: 4.2.0**\r\n* **Node Version: 8.9.1**\r\n* **npm Version: 5.5.1**\r\n* **default parser**"}}
{"actor":{"display_login":"Mantish"}}