{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2477","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2477/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2477/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2477/events","html_url":"https://github.com/eslint/eslint/issues/2477","id":74747341,"number":2477,"title":"no-wrap-func false positive on callback","user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars.githubusercontent.com/u/2213682?v=3","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-09T19:59:40Z","updated_at":"2015-05-13T15:57:53Z","closed_at":null,"body":"```js\r\n// on\r\nvar foo = new (A || B)(function(){});\r\n// or\r\nvar bar = new (getConstructor(this))(function(){});\r\n```\r\neslint 0.21.0"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/101724068","html_url":"https://github.com/eslint/eslint/issues/2477#issuecomment-101724068","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2477","id":101724068,"user":{"login":"jrvidal","id":1636604,"avatar_url":"https://avatars.githubusercontent.com/u/1636604?v=3","gravatar_id":"","url":"https://api.github.com/users/jrvidal","html_url":"https://github.com/jrvidal","followers_url":"https://api.github.com/users/jrvidal/followers","following_url":"https://api.github.com/users/jrvidal/following{/other_user}","gists_url":"https://api.github.com/users/jrvidal/gists{/gist_id}","starred_url":"https://api.github.com/users/jrvidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrvidal/subscriptions","organizations_url":"https://api.github.com/users/jrvidal/orgs","repos_url":"https://api.github.com/users/jrvidal/repos","events_url":"https://api.github.com/users/jrvidal/events{/privacy}","received_events_url":"https://api.github.com/users/jrvidal/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T15:57:53Z","updated_at":"2015-05-13T15:57:53Z","body":"Here are some examples:\r\n\r\n```js\r\n// (a) Throws `no-extra-parens`\r\n((function f() {})).length;\r\n\r\n// (b) It doesn't throw anything\r\n((function () {}))(1);\r\n\r\n// (c) Throws `no-wrap-func` and `no-extra-parens`.\r\nvar x = (function g() {});\r\n```\r\n\r\nIf `no-wrap-func` is supposed to be a particular case of `no-extra-parens`, shouldn't both rules throw for all the cases above?\r\n\r\nIf that is the case, it may make more sense to merge `no-wrap-func` into `no-extra-parens` as an option (`\"all\"`, `\"functions-only\"`)."}}