{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/7401","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/7401/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/7401/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/7401/events","html_url":"https://github.com/eslint/eslint/issues/7401","id":183893763,"number":7401,"title":"prefer-spread doesn't report Reflect.apply calls.","user":{"login":"remcohaszing","id":779047,"avatar_url":"https://avatars.githubusercontent.com/u/779047?v=3","gravatar_id":"","url":"https://api.github.com/users/remcohaszing","html_url":"https://github.com/remcohaszing","followers_url":"https://api.github.com/users/remcohaszing/followers","following_url":"https://api.github.com/users/remcohaszing/following{/other_user}","gists_url":"https://api.github.com/users/remcohaszing/gists{/gist_id}","starred_url":"https://api.github.com/users/remcohaszing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcohaszing/subscriptions","organizations_url":"https://api.github.com/users/remcohaszing/orgs","repos_url":"https://api.github.com/users/remcohaszing/repos","events_url":"https://api.github.com/users/remcohaszing/events{/privacy}","received_events_url":"https://api.github.com/users/remcohaszing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-19T08:10:10Z","updated_at":"2016-10-21T19:15:41Z","closed_at":null,"body":"**Tell us about your environment**\r\n\r\n* **ESLint Version:** 3.8.1\r\n* **Node Version:** v6.9.0\r\n* **npm Version:** 3.10.8\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?** default\r\n\r\n**Please show your full configuration:**\r\n\r\n```yaml\r\nrules:\r\n  prefer-spread: 2\r\n```\r\n\r\n**What did you do?**\r\n\r\nFrom the example:\r\n\r\n```js\r\nfoo.apply(null, args);\r\n```\r\n\r\nOne of my coworkers has decided to refactor this sort of syntax using `Reflect` instead of spread params.\r\n\r\n```js\r\nReflect.apply(foo, null, args);\r\n```\r\n\r\n**What did you expect to happen?**\r\n\r\nI would expect `prefer-spread` to not accept this syntax either, enforcing my coworkers to use the spread syntax. At least I think it should be possible to enforce this using a setting.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\nEslint didn't report anything."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/255444497","html_url":"https://github.com/eslint/eslint/issues/7401#issuecomment-255444497","issue_url":"https://api.github.com/repos/eslint/eslint/issues/7401","id":255444497,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T19:15:41Z","updated_at":"2016-10-21T19:15:41Z","body":"I'm not sure if this is a good addition to the rule. It seems like your main goal here is to disallow `Reflect.apply()`. I think you can probably accomplish that with [no-restricted-properties](http://eslint.org/docs/rules/no-restricted-properties) instead."}}
{"actor":{"display_login":"nzakas"}}