{"action":"created","issue":{"url":"https://api.github.com/repos/feross/standard/issues/381","repository_url":"https://api.github.com/repos/feross/standard","labels_url":"https://api.github.com/repos/feross/standard/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/feross/standard/issues/381/comments","events_url":"https://api.github.com/repos/feross/standard/issues/381/events","html_url":"https://github.com/feross/standard/issues/381","id":126051944,"number":381,"title":"function expression vs statement","user":{"login":"davidjamesstone","id":3041504,"avatar_url":"https://avatars.githubusercontent.com/u/3041504?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjamesstone","html_url":"https://github.com/davidjamesstone","followers_url":"https://api.github.com/users/davidjamesstone/followers","following_url":"https://api.github.com/users/davidjamesstone/following{/other_user}","gists_url":"https://api.github.com/users/davidjamesstone/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjamesstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjamesstone/subscriptions","organizations_url":"https://api.github.com/users/davidjamesstone/orgs","repos_url":"https://api.github.com/users/davidjamesstone/repos","events_url":"https://api.github.com/users/davidjamesstone/events{/privacy}","received_events_url":"https://api.github.com/users/davidjamesstone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feross/standard/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-11T22:29:10Z","updated_at":"2016-02-04T10:23:28Z","closed_at":null,"body":"I was wondering about folks preference in regards to expression vs statements.\r\n\r\nClearly it's important to understand the differences between the two in regards hoisting and also the use cases of each but there are often times where either could be used.\r\n\r\nI can't find a recommendation - is there a guideline or for this in standardjs?\r\n\r\nI see there's the \"Enforce Function Style (func-style)\" rule in ES Lint. I don't think I'm suggesting this be implemented but it would be nice to have an official line on the preferred approach.\r\n\r\nMany thanks\r\n\r\nDave"},"comment":{"url":"https://api.github.com/repos/feross/standard/issues/comments/179754744","html_url":"https://github.com/feross/standard/issues/381#issuecomment-179754744","issue_url":"https://api.github.com/repos/feross/standard/issues/381","id":179754744,"user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T10:23:28Z","updated_at":"2016-02-04T10:23:28Z","body":"Just tried enabling [`func-style`](http://eslint.org/docs/2.0.0/rules/func-style.html) to enforce function declarations, while making an exception for arrow function expressions, and got this result:\r\n\r\n```\r\n# tests 427\r\n# pass  331\r\n# fail  96\r\n```\r\n\r\nFull output: https://gist.github.com/feross/0d57fdddde82f55d618a\r\n\r\nIt's a high number, so leaning toward not enabling this. Much as I like it. Maybe if we do `standard-strict`?"}}