{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4651","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4651/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4651/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4651/events","html_url":"https://github.com/eslint/eslint/issues/4651","id":121289834,"number":4651,"title":"Add an option to 'semi' to enforce semicolons except when in single line functions","user":{"login":"shanewho","id":1959285,"avatar_url":"https://avatars.githubusercontent.com/u/1959285?v=3","gravatar_id":"","url":"https://api.github.com/users/shanewho","html_url":"https://github.com/shanewho","followers_url":"https://api.github.com/users/shanewho/followers","following_url":"https://api.github.com/users/shanewho/following{/other_user}","gists_url":"https://api.github.com/users/shanewho/gists{/gist_id}","starred_url":"https://api.github.com/users/shanewho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanewho/subscriptions","organizations_url":"https://api.github.com/users/shanewho/orgs","repos_url":"https://api.github.com/users/shanewho/repos","events_url":"https://api.github.com/users/shanewho/events{/privacy}","received_events_url":"https://api.github.com/users/shanewho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T16:49:42Z","updated_at":"2015-12-09T16:49:43Z","closed_at":null,"body":"With arrow functions, this won't be an issue but for us ES5 developers who like semicolons, it would be nice to not require them in single line, lambda-like function statements. Here is an example:\r\n\r\nWith Semicolons:\r\n```javascript\r\n[1,2,3,4,5].sort(function(a,b){ return a < b; });\r\n\r\n[1,2,3,4,5]\r\n    .sort(function(a,b){ return a < b; })\r\n    .filter(function(i){ return i < 4; })\r\n    .map(function(i){ return {value: i}; })\r\n    .forEach(function(i){ console.log(i); });\r\n```\r\n\r\nWithout Semicolons:\r\n```javascript\r\n[1,2,3,4,5].sort(function(a,b){ return a < b });\r\n\r\n[1,2,3,4,5]\r\n    .sort(function(a,b){ return a < b })\r\n    .filter(function(i){ return i < 4 })\r\n    .map(function(i){ return {value: i} })\r\n    .forEach(function(i){ console.log(i) });\r\n```\r\n\r\nI wouldn't mind doing this work but would like to know if this would be wanted, what the rule option name/value should be, any potential issues/thoughts/etc."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/163320976","html_url":"https://github.com/eslint/eslint/issues/4651#issuecomment-163320976","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4651","id":163320976,"user":{"login":"eslintbot","id":13383618,"avatar_url":"https://avatars.githubusercontent.com/u/13383618?v=3","gravatar_id":"","url":"https://api.github.com/users/eslintbot","html_url":"https://github.com/eslintbot","followers_url":"https://api.github.com/users/eslintbot/followers","following_url":"https://api.github.com/users/eslintbot/following{/other_user}","gists_url":"https://api.github.com/users/eslintbot/gists{/gist_id}","starred_url":"https://api.github.com/users/eslintbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslintbot/subscriptions","organizations_url":"https://api.github.com/users/eslintbot/orgs","repos_url":"https://api.github.com/users/eslintbot/repos","events_url":"https://api.github.com/users/eslintbot/events{/privacy}","received_events_url":"https://api.github.com/users/eslintbot/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T16:49:43Z","updated_at":"2015-12-09T16:49:43Z","body":"@shanewho Thanks for the issue! If you're reporting a bug, please be sure to include:\n\n1. The version of ESLint you are using (run `eslint -v`)\n2. What you did (the source code and ESLint configuration)\n3. The actual ESLint output complete with numbers\n4. What you expected to happen instead\n\nRequesting a new rule? Please see [Proposing a New Rule](http://eslint.org/docs/developer-guide/contributing/new-rules) for instructions."}}