{"action":"opened","number":2575,"pull_request":{"url":"https://api.github.com/repos/hapijs/hapi/pulls/2575","id":36579094,"html_url":"https://github.com/hapijs/hapi/pull/2575","diff_url":"https://github.com/hapijs/hapi/pull/2575.diff","patch_url":"https://github.com/hapijs/hapi/pull/2575.patch","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2575","number":2575,"state":"open","locked":false,"title":"Editor support improvements for Atom, Sublime, and others:","user":{"login":"garthk","id":15906,"avatar_url":"https://avatars.githubusercontent.com/u/15906?v=3","gravatar_id":"","url":"https://api.github.com/users/garthk","html_url":"https://github.com/garthk","followers_url":"https://api.github.com/users/garthk/followers","following_url":"https://api.github.com/users/garthk/following{/other_user}","gists_url":"https://api.github.com/users/garthk/gists{/gist_id}","starred_url":"https://api.github.com/users/garthk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garthk/subscriptions","organizations_url":"https://api.github.com/users/garthk/orgs","repos_url":"https://api.github.com/users/garthk/repos","events_url":"https://api.github.com/users/garthk/events{/privacy}","received_events_url":"https://api.github.com/users/garthk/received_events","type":"User","site_admin":false},"body":"`npm test` uses `lab` to enforce the code style. We can help contributors by also having their editor flag the problems as they type. This PR adds:\r\n\r\n* Local `eslint` so lint plugins can report on divergence from Hapi JavaScript style\r\n* `.editorconfig` so editorconfig plugins can apply Hapi indentation and line termination\r\n\r\nI copied the `.eslintrc` from `lab`, and adjusted the `plugins` entry to make Atom happy.\r\n\r\nHazard: need to track `lab` changes to `.eslintrc` and its `package.json` dependencies on `eslint` and `eslint-plugin-hapi`.\r\n","created_at":"2015-05-31T08:44:32Z","updated_at":"2015-05-31T08:44:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hapijs/hapi/pulls/2575/commits","review_comments_url":"https://api.github.com/repos/hapijs/hapi/pulls/2575/comments","review_comment_url":"https://api.github.com/repos/hapijs/hapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2575/comments","statuses_url":"https://api.github.com/repos/hapijs/hapi/statuses/1c69e175bbc8d3156b44f90b16179de1486fd5c9","head":{"label":"garthk:editor-friendliness","ref":"editor-friendliness","sha":"1c69e175bbc8d3156b44f90b16179de1486fd5c9","user":{"login":"garthk","id":15906,"avatar_url":"https://avatars.githubusercontent.com/u/15906?v=3","gravatar_id":"","url":"https://api.github.com/users/garthk","html_url":"https://github.com/garthk","followers_url":"https://api.github.com/users/garthk/followers","following_url":"https://api.github.com/users/garthk/following{/other_user}","gists_url":"https://api.github.com/users/garthk/gists{/gist_id}","starred_url":"https://api.github.com/users/garthk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garthk/subscriptions","organizations_url":"https://api.github.com/users/garthk/orgs","repos_url":"https://api.github.com/users/garthk/repos","events_url":"https://api.github.com/users/garthk/events{/privacy}","received_events_url":"https://api.github.com/users/garthk/received_events","type":"User","site_admin":false},"repo":{"id":36475023,"name":"hapi","full_name":"garthk/hapi","owner":{"login":"garthk","id":15906,"avatar_url":"https://avatars.githubusercontent.com/u/15906?v=3","gravatar_id":"","url":"https://api.github.com/users/garthk","html_url":"https://github.com/garthk","followers_url":"https://api.github.com/users/garthk/followers","following_url":"https://api.github.com/users/garthk/following{/other_user}","gists_url":"https://api.github.com/users/garthk/gists{/gist_id}","starred_url":"https://api.github.com/users/garthk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garthk/subscriptions","organizations_url":"https://api.github.com/users/garthk/orgs","repos_url":"https://api.github.com/users/garthk/repos","events_url":"https://api.github.com/users/garthk/events{/privacy}","received_events_url":"https://api.github.com/users/garthk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garthk/hapi","description":"Server Framework  for Node.js","fork":true,"url":"https://api.github.com/repos/garthk/hapi","forks_url":"https://api.github.com/repos/garthk/hapi/forks","keys_url":"https://api.github.com/repos/garthk/hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garthk/hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garthk/hapi/teams","hooks_url":"https://api.github.com/repos/garthk/hapi/hooks","issue_events_url":"https://api.github.com/repos/garthk/hapi/issues/events{/number}","events_url":"https://api.github.com/repos/garthk/hapi/events","assignees_url":"https://api.github.com/repos/garthk/hapi/assignees{/user}","branches_url":"https://api.github.com/repos/garthk/hapi/branches{/branch}","tags_url":"https://api.github.com/repos/garthk/hapi/tags","blobs_url":"https://api.github.com/repos/garthk/hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garthk/hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garthk/hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/garthk/hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garthk/hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/garthk/hapi/languages","stargazers_url":"https://api.github.com/repos/garthk/hapi/stargazers","contributors_url":"https://api.github.com/repos/garthk/hapi/contributors","subscribers_url":"https://api.github.com/repos/garthk/hapi/subscribers","subscription_url":"https://api.github.com/repos/garthk/hapi/subscription","commits_url":"https://api.github.com/repos/garthk/hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/garthk/hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/garthk/hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/garthk/hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/garthk/hapi/contents/{+path}","compare_url":"https://api.github.com/repos/garthk/hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garthk/hapi/merges","archive_url":"https://api.github.com/repos/garthk/hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garthk/hapi/downloads","issues_url":"https://api.github.com/repos/garthk/hapi/issues{/number}","pulls_url":"https://api.github.com/repos/garthk/hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/garthk/hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/garthk/hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garthk/hapi/labels{/name}","releases_url":"https://api.github.com/repos/garthk/hapi/releases{/id}","created_at":"2015-05-29T01:03:34Z","updated_at":"2015-05-29T01:03:36Z","pushed_at":"2015-05-31T08:36:59Z","git_url":"git://github.com/garthk/hapi.git","ssh_url":"git@github.com:garthk/hapi.git","clone_url":"https://github.com/garthk/hapi.git","svn_url":"https://github.com/garthk/hapi","homepage":"hapijs.com","size":20702,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"hapijs:master","ref":"master","sha":"72b97a501969e8f088e9cfd42ea06ce2ccf7c8be","user":{"login":"hapijs","id":3774533,"avatar_url":"https://avatars.githubusercontent.com/u/3774533?v=3","gravatar_id":"","url":"https://api.github.com/users/hapijs","html_url":"https://github.com/hapijs","followers_url":"https://api.github.com/users/hapijs/followers","following_url":"https://api.github.com/users/hapijs/following{/other_user}","gists_url":"https://api.github.com/users/hapijs/gists{/gist_id}","starred_url":"https://api.github.com/users/hapijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hapijs/subscriptions","organizations_url":"https://api.github.com/users/hapijs/orgs","repos_url":"https://api.github.com/users/hapijs/repos","events_url":"https://api.github.com/users/hapijs/events{/privacy}","received_events_url":"https://api.github.com/users/hapijs/received_events","type":"Organization","site_admin":false},"repo":{"id":2163263,"name":"hapi","full_name":"hapijs/hapi","owner":{"login":"hapijs","id":3774533,"avatar_url":"https://avatars.githubusercontent.com/u/3774533?v=3","gravatar_id":"","url":"https://api.github.com/users/hapijs","html_url":"https://github.com/hapijs","followers_url":"https://api.github.com/users/hapijs/followers","following_url":"https://api.github.com/users/hapijs/following{/other_user}","gists_url":"https://api.github.com/users/hapijs/gists{/gist_id}","starred_url":"https://api.github.com/users/hapijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hapijs/subscriptions","organizations_url":"https://api.github.com/users/hapijs/orgs","repos_url":"https://api.github.com/users/hapijs/repos","events_url":"https://api.github.com/users/hapijs/events{/privacy}","received_events_url":"https://api.github.com/users/hapijs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hapijs/hapi","description":"Server Framework  for Node.js","fork":false,"url":"https://api.github.com/repos/hapijs/hapi","forks_url":"https://api.github.com/repos/hapijs/hapi/forks","keys_url":"https://api.github.com/repos/hapijs/hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hapijs/hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hapijs/hapi/teams","hooks_url":"https://api.github.com/repos/hapijs/hapi/hooks","issue_events_url":"https://api.github.com/repos/hapijs/hapi/issues/events{/number}","events_url":"https://api.github.com/repos/hapijs/hapi/events","assignees_url":"https://api.github.com/repos/hapijs/hapi/assignees{/user}","branches_url":"https://api.github.com/repos/hapijs/hapi/branches{/branch}","tags_url":"https://api.github.com/repos/hapijs/hapi/tags","blobs_url":"https://api.github.com/repos/hapijs/hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hapijs/hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hapijs/hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/hapijs/hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hapijs/hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/hapijs/hapi/languages","stargazers_url":"https://api.github.com/repos/hapijs/hapi/stargazers","contributors_url":"https://api.github.com/repos/hapijs/hapi/contributors","subscribers_url":"https://api.github.com/repos/hapijs/hapi/subscribers","subscription_url":"https://api.github.com/repos/hapijs/hapi/subscription","commits_url":"https://api.github.com/repos/hapijs/hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/hapijs/hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/hapijs/hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/hapijs/hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/hapijs/hapi/contents/{+path}","compare_url":"https://api.github.com/repos/hapijs/hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hapijs/hapi/merges","archive_url":"https://api.github.com/repos/hapijs/hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hapijs/hapi/downloads","issues_url":"https://api.github.com/repos/hapijs/hapi/issues{/number}","pulls_url":"https://api.github.com/repos/hapijs/hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/hapijs/hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/hapijs/hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hapijs/hapi/labels{/name}","releases_url":"https://api.github.com/repos/hapijs/hapi/releases{/id}","created_at":"2011-08-06T00:35:39Z","updated_at":"2015-05-30T12:28:15Z","pushed_at":"2015-05-31T06:55:31Z","git_url":"git://github.com/hapijs/hapi.git","ssh_url":"git@github.com:hapijs/hapi.git","clone_url":"https://github.com/hapijs/hapi.git","svn_url":"https://github.com/hapijs/hapi","homepage":"hapijs.com","size":20702,"stargazers_count":4274,"watchers_count":4274,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":463,"mirror_url":null,"open_issues_count":21,"forks":463,"open_issues":21,"watchers":4274,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hapijs/hapi/pulls/2575"},"html":{"href":"https://github.com/hapijs/hapi/pull/2575"},"issue":{"href":"https://api.github.com/repos/hapijs/hapi/issues/2575"},"comments":{"href":"https://api.github.com/repos/hapijs/hapi/issues/2575/comments"},"review_comments":{"href":"https://api.github.com/repos/hapijs/hapi/pulls/2575/comments"},"review_comment":{"href":"https://api.github.com/repos/hapijs/hapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hapijs/hapi/pulls/2575/commits"},"statuses":{"href":"https://api.github.com/repos/hapijs/hapi/statuses/1c69e175bbc8d3156b44f90b16179de1486fd5c9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":90,"deletions":1,"changed_files":3}}