{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/7139","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/7139/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/7139/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/7139/events","html_url":"https://github.com/eslint/eslint/pull/7139","id":176559592,"number":7139,"title":"Update: Make `no-restricted-properties` more flexible (fixes #7137)","user":{"login":"not-an-aardvark","id":11638619,"avatar_url":"https://avatars.githubusercontent.com/u/11638619?v=3","gravatar_id":"","url":"https://api.github.com/users/not-an-aardvark","html_url":"https://github.com/not-an-aardvark","followers_url":"https://api.github.com/users/not-an-aardvark/followers","following_url":"https://api.github.com/users/not-an-aardvark/following{/other_user}","gists_url":"https://api.github.com/users/not-an-aardvark/gists{/gist_id}","starred_url":"https://api.github.com/users/not-an-aardvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-an-aardvark/subscriptions","organizations_url":"https://api.github.com/users/not-an-aardvark/orgs","repos_url":"https://api.github.com/users/not-an-aardvark/repos","events_url":"https://api.github.com/users/not-an-aardvark/events{/privacy}","received_events_url":"https://api.github.com/users/not-an-aardvark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/CLA:%20Valid","name":"CLA: Valid","color":"007700"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-13T06:24:21Z","updated_at":"2016-09-13T16:51:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/7139","html_url":"https://github.com/eslint/eslint/pull/7139","diff_url":"https://github.com/eslint/eslint/pull/7139.diff","patch_url":"https://github.com/eslint/eslint/pull/7139.patch"},"body":"**What is the purpose of this pull request? (put an \"X\" next to item)**\r\n\r\n```\r\n[ ] Documentation update\r\n[ ] Bug fix ([template](https://github.com/eslint/eslint/blob/master/templates/bug-report.md))\r\n[ ] New rule ([template](https://github.com/eslint/eslint/blob/master/templates/rule-proposal.md))\r\n[x] Changes an existing rule ([template](https://github.com/eslint/eslint/blob/master/templates/rule-change-proposal.md))\r\n[ ] Add autofixing to a rule\r\n[ ] Add a CLI option\r\n[ ] Add something to the core\r\n[ ] Other, please explain:\r\n```\r\n\r\nSee #7137 for template answers.\r\n\r\n**Please check each item to ensure your pull request is ready:**\r\n\r\n- [x] I've read the [pull request guide](http://eslint.org/docs/developer-guide/contributing/pull-requests)\r\n- [x] I've included tests for my change\r\n- [x] I've updated documentation for my change (if appropriate)\r\n\r\n**What changes did you make? (Give an overview)**\r\n\r\nThis allows the `object` or `properties` option to be omitted for `no-restricted-properties`.\r\n\r\nFor more information on the updated behavior, see #7137.\r\n\r\n**Is there anything you'd like reviewers to focus on?**\r\n\r\n* ~~Is it possible to require either the `object` or `property` key in a schema, while still throwing a validation error if neither `object` nor `property` is provided?~~ (edit: this is fixed)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/246747577","html_url":"https://github.com/eslint/eslint/pull/7139#issuecomment-246747577","issue_url":"https://api.github.com/repos/eslint/eslint/issues/7139","id":246747577,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T16:51:47Z","updated_at":"2016-09-13T16:51:47Z","body":"Can we add some test cases for things like:\r\n```js\r\n/* eslint no-restricted-properties: [2, { \"object\": [\"foo\"] }] */\r\nconst { bar } = foo;\r\n```"}}
{"actor":{"display_login":"ljharb"}}