{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint/pulls/comments/25561454","id":25561454,"diff_hunk":"@@ -7,6 +7,29 @@ var foo = 0;\n foo++;\n ```\n \n+## Automatic Semicolon Insertion","path":"docs/rules/no-plusplus.md","position":4,"original_position":4,"commit_id":"06df5def4ce512561b5c663b4ad57d29e1f49e49","original_commit_id":"06df5def4ce512561b5c663b4ad57d29e1f49e49","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},"body":"You don't need this heading.","created_at":"2015-02-28T21:32:39Z","updated_at":"2015-02-28T21:32:39Z","html_url":"https://github.com/eslint/eslint/pull/1904#discussion_r25561454","pull_request_url":"https://api.github.com/repos/eslint/eslint/pulls/1904","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/25561454"},"html":{"href":"https://github.com/eslint/eslint/pull/1904#discussion_r25561454"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1904"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/1904","id":30229484,"html_url":"https://github.com/eslint/eslint/pull/1904","diff_url":"https://github.com/eslint/eslint/pull/1904.diff","patch_url":"https://github.com/eslint/eslint/pull/1904.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1904","number":1904,"state":"open","locked":false,"title":"Docs: no-plusplus.md - auto semicolon insertion","user":{"login":"xorcus","id":1886705,"avatar_url":"https://avatars.githubusercontent.com/u/1886705?v=3","gravatar_id":"","url":"https://api.github.com/users/xorcus","html_url":"https://github.com/xorcus","followers_url":"https://api.github.com/users/xorcus/followers","following_url":"https://api.github.com/users/xorcus/following{/other_user}","gists_url":"https://api.github.com/users/xorcus/gists{/gist_id}","starred_url":"https://api.github.com/users/xorcus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorcus/subscriptions","organizations_url":"https://api.github.com/users/xorcus/orgs","repos_url":"https://api.github.com/users/xorcus/repos","events_url":"https://api.github.com/users/xorcus/events{/privacy}","received_events_url":"https://api.github.com/users/xorcus/received_events","type":"User","site_admin":false},"body":"The way this rule is presented in the documentation sounds as if it's just a matter of taste regarding code readability. On the other hand, due to automatic semicolon insertion, this may be considered an important rule. Of course, no one will write the code like in these examples, but some of us do not prefer whitespace affecting semantics of the source code, and that's why I believe this rule should be on by default.\r\n\r\nRecall the famous example function which returns `undefined`:\r\n```js\r\nfunction returningUndefined() {\r\n  return\r\n  {\r\n    value: 42\r\n  }\r\n}\r\n```","created_at":"2015-02-28T19:34:47Z","updated_at":"2015-02-28T21:32:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa79419d20f067d0146e24f8109fc681e863e9d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/1904/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/1904/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1904/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/06df5def4ce512561b5c663b4ad57d29e1f49e49","head":{"label":"xorcus:master","ref":"master","sha":"06df5def4ce512561b5c663b4ad57d29e1f49e49","user":{"login":"xorcus","id":1886705,"avatar_url":"https://avatars.githubusercontent.com/u/1886705?v=3","gravatar_id":"","url":"https://api.github.com/users/xorcus","html_url":"https://github.com/xorcus","followers_url":"https://api.github.com/users/xorcus/followers","following_url":"https://api.github.com/users/xorcus/following{/other_user}","gists_url":"https://api.github.com/users/xorcus/gists{/gist_id}","starred_url":"https://api.github.com/users/xorcus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorcus/subscriptions","organizations_url":"https://api.github.com/users/xorcus/orgs","repos_url":"https://api.github.com/users/xorcus/repos","events_url":"https://api.github.com/users/xorcus/events{/privacy}","received_events_url":"https://api.github.com/users/xorcus/received_events","type":"User","site_admin":false},"repo":{"id":31473696,"name":"eslint","full_name":"xorcus/eslint","owner":{"login":"xorcus","id":1886705,"avatar_url":"https://avatars.githubusercontent.com/u/1886705?v=3","gravatar_id":"","url":"https://api.github.com/users/xorcus","html_url":"https://github.com/xorcus","followers_url":"https://api.github.com/users/xorcus/followers","following_url":"https://api.github.com/users/xorcus/following{/other_user}","gists_url":"https://api.github.com/users/xorcus/gists{/gist_id}","starred_url":"https://api.github.com/users/xorcus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorcus/subscriptions","organizations_url":"https://api.github.com/users/xorcus/orgs","repos_url":"https://api.github.com/users/xorcus/repos","events_url":"https://api.github.com/users/xorcus/events{/privacy}","received_events_url":"https://api.github.com/users/xorcus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xorcus/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/xorcus/eslint","forks_url":"https://api.github.com/repos/xorcus/eslint/forks","keys_url":"https://api.github.com/repos/xorcus/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xorcus/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xorcus/eslint/teams","hooks_url":"https://api.github.com/repos/xorcus/eslint/hooks","issue_events_url":"https://api.github.com/repos/xorcus/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/xorcus/eslint/events","assignees_url":"https://api.github.com/repos/xorcus/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/xorcus/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/xorcus/eslint/tags","blobs_url":"https://api.github.com/repos/xorcus/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xorcus/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xorcus/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/xorcus/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xorcus/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/xorcus/eslint/languages","stargazers_url":"https://api.github.com/repos/xorcus/eslint/stargazers","contributors_url":"https://api.github.com/repos/xorcus/eslint/contributors","subscribers_url":"https://api.github.com/repos/xorcus/eslint/subscribers","subscription_url":"https://api.github.com/repos/xorcus/eslint/subscription","commits_url":"https://api.github.com/repos/xorcus/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/xorcus/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/xorcus/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/xorcus/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/xorcus/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/xorcus/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xorcus/eslint/merges","archive_url":"https://api.github.com/repos/xorcus/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xorcus/eslint/downloads","issues_url":"https://api.github.com/repos/xorcus/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/xorcus/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/xorcus/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/xorcus/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xorcus/eslint/labels{/name}","releases_url":"https://api.github.com/repos/xorcus/eslint/releases{/id}","created_at":"2015-02-28T19:29:29Z","updated_at":"2015-02-28T19:32:50Z","pushed_at":"2015-02-28T19:32:49Z","git_url":"git://github.com/xorcus/eslint.git","ssh_url":"git@github.com:xorcus/eslint.git","clone_url":"https://github.com/xorcus/eslint.git","svn_url":"https://github.com/xorcus/eslint","homepage":"http://eslint.org","size":13113,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eslint:master","ref":"master","sha":"ba856e74eda0fd4db267b720acd27d2a3e3b9c49","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","created_at":"2013-06-29T23:59:48Z","updated_at":"2015-02-28T21:19:20Z","pushed_at":"2015-02-28T19:02:49Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":13113,"stargazers_count":1710,"watchers_count":1710,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":102,"forks":285,"open_issues":102,"watchers":1710,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1904"},"html":{"href":"https://github.com/eslint/eslint/pull/1904"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/1904"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/1904/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1904/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/1904/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/06df5def4ce512561b5c663b4ad57d29e1f49e49"}}}}