payload: {"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/16908","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/16908/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/16908/comments","events_url":"https://api.github.com/repos/facebook/react/issues/16908/events","html_url":"https://github.com/facebook/react/issues/16908","id":499061883,"node_id":"MDU6SXNzdWU0OTkwNjE4ODM=","number":16908,"title":"eslint-plugin-react-hooks feature request: enforce naming convention for useState()","user":{"login":"mbrowne","id":874316,"node_id":"MDQ6VXNlcjg3NDMxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/874316?v=4","gravatar_id":"","url":"https://api.github.com/users/mbrowne","html_url":"https://github.com/mbrowne","followers_url":"https://api.github.com/users/mbrowne/followers","following_url":"https://api.github.com/users/mbrowne/following{/other_user}","gists_url":"https://api.github.com/users/mbrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrowne/subscriptions","organizations_url":"https://api.github.com/users/mbrowne/orgs","repos_url":"https://api.github.com/users/mbrowne/repos","events_url":"https://api.github.com/users/mbrowne/events{/privacy}","received_events_url":"https://api.github.com/users/mbrowne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-26T19:03:11Z","updated_at":"2020-01-09T20:48:26Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Note: if the issue is about documentation or the website, please file it at:\r\n  https://github.com/reactjs/reactjs.org/issues/new\r\n-->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nFeature\r\n\r\n**What is the current behavior?**\r\n\r\nThere is currently no rule to enforce the standard naming convention for `useState`.\r\n\r\n**What is the expected behavior?**\r\n\r\nIt would be great to have a rule to enforce the standard naming convention for `useState()`:\r\n\r\n```\r\nconst [x, setX] = useState(...)\r\n```\r\n\r\nFor example, the rule would consider this an error:\r\n\r\n```\r\nconst [x, setFoo] = useState(...)\r\n```\r\n\r\nThis would ensure that all useState variables followed the same convention, i.e. `${varName}` and `set${upperFirstVarName}`.\r\n\r\n**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?**\r\n\r\nAll versions with hooks\r\n\r\n**Note**\r\n\r\nI originally submitted a feature request for eslint-plugin-react: https://github.com/yannickcr/eslint-plugin-react/issues/2417. It was suggested that I make the feature request here instead. I'm not sure which plugin would be the more appropriate place for this."},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/572748352","html_url":"https://github.com/facebook/react/issues/16908#issuecomment-572748352","issue_url":"https://api.github.com/repos/facebook/react/issues/16908","id":572748352,"node_id":"MDEyOklzc3VlQ29tbWVudDU3Mjc0ODM1Mg==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2020-01-09T20:48:26Z","updated_at":"2020-01-09T20:48:26Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.\n"}}
other: {"actor":{"display_login":"stale"}}