{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10817","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10817/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10817/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10817/events","html_url":"https://github.com/eslint/eslint/issues/10817","id":355678886,"node_id":"MDU6SXNzdWUzNTU2Nzg4ODY=","number":10817,"title":"simplify the usage of context.report() if meta.messages has no more than one.","user":{"login":"Aladdin-ADD","id":13050025,"node_id":"MDQ6VXNlcjEzMDUwMDI1","avatar_url":"https://avatars2.githubusercontent.com/u/13050025?v=4","gravatar_id":"","url":"https://api.github.com/users/Aladdin-ADD","html_url":"https://github.com/Aladdin-ADD","followers_url":"https://api.github.com/users/Aladdin-ADD/followers","following_url":"https://api.github.com/users/Aladdin-ADD/following{/other_user}","gists_url":"https://api.github.com/users/Aladdin-ADD/gists{/gist_id}","starred_url":"https://api.github.com/users/Aladdin-ADD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aladdin-ADD/subscriptions","organizations_url":"https://api.github.com/users/Aladdin-ADD/orgs","repos_url":"https://api.github.com/users/Aladdin-ADD/repos","events_url":"https://api.github.com/users/Aladdin-ADD/events{/privacy}","received_events_url":"https://api.github.com/users/Aladdin-ADD/received_events","type":"User","site_admin":false},"labels":[{"id":82922548,"node_id":"MDU6TGFiZWw4MjkyMjU0OA==","url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":45711352,"node_id":"MDU6TGFiZWw0NTcxMTM1Mg==","url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":255319420,"node_id":"MDU6TGFiZWwyNTUzMTk0MjA=","url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-30T17:17:39Z","updated_at":"2018-08-30T18:25:50Z","closed_at":"2018-08-30T18:25:50Z","author_association":"MEMBER","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 requesting a change that is not a bug fix, rule change, or new rule. If you are here for another reason, please see below:\r\n\r\n    1. To report a bug: https://eslint.org/docs/developer-guide/contributing/reporting-bugs\r\n    2. To request a rule change: https://eslint.org/docs/developer-guide/contributing/rule-changes\r\n    3. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\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\n**The version of ESLint you are using.**\r\nmaster/5.4.0\r\n\r\n\r\n```js\r\n// rule def\r\nmodule.exports = {\r\n  meta: {messages: {unexpected: \"some message\"}},\r\n\r\n  create(context){\r\n    //...\r\n    context.report({\r\n      node,\r\n      messageId: \"unexpected\", // this can be defaults to \"unexpected\", since only one item in messages.\r\n    })\r\n  }\r\n};\r\n```\r\n\r\nit can simplify the usage of `context.report` to something like `context.report({node})` in some core rules.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/417420348","html_url":"https://github.com/eslint/eslint/issues/10817#issuecomment-417420348","issue_url":"https://api.github.com/repos/eslint/eslint/issues/10817","id":417420348,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzQyMDM0OA==","user":{"login":"Aladdin-ADD","id":13050025,"node_id":"MDQ6VXNlcjEzMDUwMDI1","avatar_url":"https://avatars2.githubusercontent.com/u/13050025?v=4","gravatar_id":"","url":"https://api.github.com/users/Aladdin-ADD","html_url":"https://github.com/Aladdin-ADD","followers_url":"https://api.github.com/users/Aladdin-ADD/followers","following_url":"https://api.github.com/users/Aladdin-ADD/following{/other_user}","gists_url":"https://api.github.com/users/Aladdin-ADD/gists{/gist_id}","starred_url":"https://api.github.com/users/Aladdin-ADD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aladdin-ADD/subscriptions","organizations_url":"https://api.github.com/users/Aladdin-ADD/orgs","repos_url":"https://api.github.com/users/Aladdin-ADD/repos","events_url":"https://api.github.com/users/Aladdin-ADD/events{/privacy}","received_events_url":"https://api.github.com/users/Aladdin-ADD/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T18:25:50Z","updated_at":"2018-08-30T18:25:50Z","author_association":"MEMBER","body":"after thinking for a while, I'm not sure it's worth the complexity."}}
{"actor":{"display_login":"Aladdin-ADD"}}