{"action":"created","comment":{"url":"https://api.github.com/repos/clutchski/coffeelint/pulls/comments/170175117","pull_request_review_id":98821450,"id":170175117,"diff_hunk":"@@ -28,12 +28,18 @@ findFile = (name, dir) ->\n # Possibly find CoffeeLint configuration within a package.json file.\n loadNpmConfig = (dir) ->\n     fp = findFile('package.json', dir)\n-    loadJSON(fp)?.coffeelintConfig  if fp\n+    loadJSON(fp, 'coffeelintConfig') if fp\n \n # Parse a JSON file gracefully.\n-loadJSON = (filename) ->\n+loadJSON = (filename, attr = null) ->\n     try\n-        JSON.parse(stripComments(fs.readFileSync(filename).toString()))\n+        config = JSON.parse(stripComments(fs.readFileSync(filename).toString()))\n+        if attr\n+            return null if not config[attr]?\n+            config = config[attr]\n+\n+        config.__location__ = filename","path":"src/configfinder.coffee","position":17,"original_position":17,"commit_id":"f9be873f360381a11f94a893556eb98d512a0f06","original_commit_id":"f9be873f360381a11f94a893556eb98d512a0f06","user":{"login":"aminland","id":230800,"avatar_url":"https://avatars0.githubusercontent.com/u/230800?v=4","gravatar_id":"","url":"https://api.github.com/users/aminland","html_url":"https://github.com/aminland","followers_url":"https://api.github.com/users/aminland/followers","following_url":"https://api.github.com/users/aminland/following{/other_user}","gists_url":"https://api.github.com/users/aminland/gists{/gist_id}","starred_url":"https://api.github.com/users/aminland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminland/subscriptions","organizations_url":"https://api.github.com/users/aminland/orgs","repos_url":"https://api.github.com/users/aminland/repos","events_url":"https://api.github.com/users/aminland/events{/privacy}","received_events_url":"https://api.github.com/users/aminland/received_events","type":"User","site_admin":false},"body":"This is so we can remember where the config file is loaded from, so we can resolve the \"extends\" property relative to the location of the configfile (as opposed to the cwd)","created_at":"2018-02-23T06:27:11Z","updated_at":"2018-02-23T06:27:11Z","html_url":"https://github.com/clutchski/coffeelint/pull/632#discussion_r170175117","pull_request_url":"https://api.github.com/repos/clutchski/coffeelint/pulls/632","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/comments/170175117"},"html":{"href":"https://github.com/clutchski/coffeelint/pull/632#discussion_r170175117"},"pull_request":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/632"}}},"pull_request":{"url":"https://api.github.com/repos/clutchski/coffeelint/pulls/632","id":163317993,"html_url":"https://github.com/clutchski/coffeelint/pull/632","diff_url":"https://github.com/clutchski/coffeelint/pull/632.diff","patch_url":"https://github.com/clutchski/coffeelint/pull/632.patch","issue_url":"https://api.github.com/repos/clutchski/coffeelint/issues/632","number":632,"state":"open","locked":false,"title":"Support for Coffeescript 2 (including JSX)","user":{"login":"aminland","id":230800,"avatar_url":"https://avatars0.githubusercontent.com/u/230800?v=4","gravatar_id":"","url":"https://api.github.com/users/aminland","html_url":"https://github.com/aminland","followers_url":"https://api.github.com/users/aminland/followers","following_url":"https://api.github.com/users/aminland/following{/other_user}","gists_url":"https://api.github.com/users/aminland/gists{/gist_id}","starred_url":"https://api.github.com/users/aminland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminland/subscriptions","organizations_url":"https://api.github.com/users/aminland/orgs","repos_url":"https://api.github.com/users/aminland/repos","events_url":"https://api.github.com/users/aminland/events{/privacy}","received_events_url":"https://api.github.com/users/aminland/received_events","type":"User","site_admin":false},"body":"Fixes colon and comma spacing issues from CSX (JSX) format described in #629 ","created_at":"2018-01-16T23:55:50Z","updated_at":"2018-02-23T06:27:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"116c1290444c736cdde2faf0745d8cc0f7c618ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clutchski/coffeelint/pulls/632/commits","review_comments_url":"https://api.github.com/repos/clutchski/coffeelint/pulls/632/comments","review_comment_url":"https://api.github.com/repos/clutchski/coffeelint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clutchski/coffeelint/issues/632/comments","statuses_url":"https://api.github.com/repos/clutchski/coffeelint/statuses/f9be873f360381a11f94a893556eb98d512a0f06","head":{"label":"aminland:patch-1","ref":"patch-1","sha":"f9be873f360381a11f94a893556eb98d512a0f06","user":{"login":"aminland","id":230800,"avatar_url":"https://avatars0.githubusercontent.com/u/230800?v=4","gravatar_id":"","url":"https://api.github.com/users/aminland","html_url":"https://github.com/aminland","followers_url":"https://api.github.com/users/aminland/followers","following_url":"https://api.github.com/users/aminland/following{/other_user}","gists_url":"https://api.github.com/users/aminland/gists{/gist_id}","starred_url":"https://api.github.com/users/aminland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminland/subscriptions","organizations_url":"https://api.github.com/users/aminland/orgs","repos_url":"https://api.github.com/users/aminland/repos","events_url":"https://api.github.com/users/aminland/events{/privacy}","received_events_url":"https://api.github.com/users/aminland/received_events","type":"User","site_admin":false},"repo":{"id":117757711,"name":"coffeelint2","full_name":"aminland/coffeelint2","owner":{"login":"aminland","id":230800,"avatar_url":"https://avatars0.githubusercontent.com/u/230800?v=4","gravatar_id":"","url":"https://api.github.com/users/aminland","html_url":"https://github.com/aminland","followers_url":"https://api.github.com/users/aminland/followers","following_url":"https://api.github.com/users/aminland/following{/other_user}","gists_url":"https://api.github.com/users/aminland/gists{/gist_id}","starred_url":"https://api.github.com/users/aminland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminland/subscriptions","organizations_url":"https://api.github.com/users/aminland/orgs","repos_url":"https://api.github.com/users/aminland/repos","events_url":"https://api.github.com/users/aminland/events{/privacy}","received_events_url":"https://api.github.com/users/aminland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aminland/coffeelint2","description":"Lint your CoffeeScript (with modern coffee / CJSX support). Rulesets apply nicely via https://www.npmjs.com/package/@fellow/eslint-plugin-coffee","fork":true,"url":"https://api.github.com/repos/aminland/coffeelint2","forks_url":"https://api.github.com/repos/aminland/coffeelint2/forks","keys_url":"https://api.github.com/repos/aminland/coffeelint2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aminland/coffeelint2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aminland/coffeelint2/teams","hooks_url":"https://api.github.com/repos/aminland/coffeelint2/hooks","issue_events_url":"https://api.github.com/repos/aminland/coffeelint2/issues/events{/number}","events_url":"https://api.github.com/repos/aminland/coffeelint2/events","assignees_url":"https://api.github.com/repos/aminland/coffeelint2/assignees{/user}","branches_url":"https://api.github.com/repos/aminland/coffeelint2/branches{/branch}","tags_url":"https://api.github.com/repos/aminland/coffeelint2/tags","blobs_url":"https://api.github.com/repos/aminland/coffeelint2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aminland/coffeelint2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aminland/coffeelint2/git/refs{/sha}","trees_url":"https://api.github.com/repos/aminland/coffeelint2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aminland/coffeelint2/statuses/{sha}","languages_url":"https://api.github.com/repos/aminland/coffeelint2/languages","stargazers_url":"https://api.github.com/repos/aminland/coffeelint2/stargazers","contributors_url":"https://api.github.com/repos/aminland/coffeelint2/contributors","subscribers_url":"https://api.github.com/repos/aminland/coffeelint2/subscribers","subscription_url":"https://api.github.com/repos/aminland/coffeelint2/subscription","commits_url":"https://api.github.com/repos/aminland/coffeelint2/commits{/sha}","git_commits_url":"https://api.github.com/repos/aminland/coffeelint2/git/commits{/sha}","comments_url":"https://api.github.com/repos/aminland/coffeelint2/comments{/number}","issue_comment_url":"https://api.github.com/repos/aminland/coffeelint2/issues/comments{/number}","contents_url":"https://api.github.com/repos/aminland/coffeelint2/contents/{+path}","compare_url":"https://api.github.com/repos/aminland/coffeelint2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aminland/coffeelint2/merges","archive_url":"https://api.github.com/repos/aminland/coffeelint2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aminland/coffeelint2/downloads","issues_url":"https://api.github.com/repos/aminland/coffeelint2/issues{/number}","pulls_url":"https://api.github.com/repos/aminland/coffeelint2/pulls{/number}","milestones_url":"https://api.github.com/repos/aminland/coffeelint2/milestones{/number}","notifications_url":"https://api.github.com/repos/aminland/coffeelint2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aminland/coffeelint2/labels{/name}","releases_url":"https://api.github.com/repos/aminland/coffeelint2/releases{/id}","deployments_url":"https://api.github.com/repos/aminland/coffeelint2/deployments","created_at":"2018-01-16T23:54:29Z","updated_at":"2018-02-15T02:20:40Z","pushed_at":"2018-02-23T06:22:21Z","git_url":"git://github.com/aminland/coffeelint2.git","ssh_url":"git@github.com:aminland/coffeelint2.git","clone_url":"https://github.com/aminland/coffeelint2.git","svn_url":"https://github.com/aminland/coffeelint2","homepage":"https://www.npmjs.com/package/@fellow/coffeelint2","size":2033,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"clutchski:master","ref":"master","sha":"99f56ed7e5b0a813d148fb595d84031af39d21f4","user":{"login":"clutchski","id":92482,"avatar_url":"https://avatars2.githubusercontent.com/u/92482?v=4","gravatar_id":"","url":"https://api.github.com/users/clutchski","html_url":"https://github.com/clutchski","followers_url":"https://api.github.com/users/clutchski/followers","following_url":"https://api.github.com/users/clutchski/following{/other_user}","gists_url":"https://api.github.com/users/clutchski/gists{/gist_id}","starred_url":"https://api.github.com/users/clutchski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clutchski/subscriptions","organizations_url":"https://api.github.com/users/clutchski/orgs","repos_url":"https://api.github.com/users/clutchski/repos","events_url":"https://api.github.com/users/clutchski/events{/privacy}","received_events_url":"https://api.github.com/users/clutchski/received_events","type":"User","site_admin":false},"repo":{"id":2920221,"name":"coffeelint","full_name":"clutchski/coffeelint","owner":{"login":"clutchski","id":92482,"avatar_url":"https://avatars2.githubusercontent.com/u/92482?v=4","gravatar_id":"","url":"https://api.github.com/users/clutchski","html_url":"https://github.com/clutchski","followers_url":"https://api.github.com/users/clutchski/followers","following_url":"https://api.github.com/users/clutchski/following{/other_user}","gists_url":"https://api.github.com/users/clutchski/gists{/gist_id}","starred_url":"https://api.github.com/users/clutchski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clutchski/subscriptions","organizations_url":"https://api.github.com/users/clutchski/orgs","repos_url":"https://api.github.com/users/clutchski/repos","events_url":"https://api.github.com/users/clutchski/events{/privacy}","received_events_url":"https://api.github.com/users/clutchski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clutchski/coffeelint","description":"Lint your CoffeeScript.","fork":false,"url":"https://api.github.com/repos/clutchski/coffeelint","forks_url":"https://api.github.com/repos/clutchski/coffeelint/forks","keys_url":"https://api.github.com/repos/clutchski/coffeelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clutchski/coffeelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clutchski/coffeelint/teams","hooks_url":"https://api.github.com/repos/clutchski/coffeelint/hooks","issue_events_url":"https://api.github.com/repos/clutchski/coffeelint/issues/events{/number}","events_url":"https://api.github.com/repos/clutchski/coffeelint/events","assignees_url":"https://api.github.com/repos/clutchski/coffeelint/assignees{/user}","branches_url":"https://api.github.com/repos/clutchski/coffeelint/branches{/branch}","tags_url":"https://api.github.com/repos/clutchski/coffeelint/tags","blobs_url":"https://api.github.com/repos/clutchski/coffeelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clutchski/coffeelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clutchski/coffeelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/clutchski/coffeelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clutchski/coffeelint/statuses/{sha}","languages_url":"https://api.github.com/repos/clutchski/coffeelint/languages","stargazers_url":"https://api.github.com/repos/clutchski/coffeelint/stargazers","contributors_url":"https://api.github.com/repos/clutchski/coffeelint/contributors","subscribers_url":"https://api.github.com/repos/clutchski/coffeelint/subscribers","subscription_url":"https://api.github.com/repos/clutchski/coffeelint/subscription","commits_url":"https://api.github.com/repos/clutchski/coffeelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/clutchski/coffeelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/clutchski/coffeelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/clutchski/coffeelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/clutchski/coffeelint/contents/{+path}","compare_url":"https://api.github.com/repos/clutchski/coffeelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clutchski/coffeelint/merges","archive_url":"https://api.github.com/repos/clutchski/coffeelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clutchski/coffeelint/downloads","issues_url":"https://api.github.com/repos/clutchski/coffeelint/issues{/number}","pulls_url":"https://api.github.com/repos/clutchski/coffeelint/pulls{/number}","milestones_url":"https://api.github.com/repos/clutchski/coffeelint/milestones{/number}","notifications_url":"https://api.github.com/repos/clutchski/coffeelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clutchski/coffeelint/labels{/name}","releases_url":"https://api.github.com/repos/clutchski/coffeelint/releases{/id}","deployments_url":"https://api.github.com/repos/clutchski/coffeelint/deployments","created_at":"2011-12-05T21:53:01Z","updated_at":"2018-02-22T23:46:10Z","pushed_at":"2018-02-23T06:22:23Z","git_url":"git://github.com/clutchski/coffeelint.git","ssh_url":"git@github.com:clutchski/coffeelint.git","clone_url":"https://github.com/clutchski/coffeelint.git","svn_url":"https://github.com/clutchski/coffeelint","homepage":"http://www.coffeelint.org","size":1894,"stargazers_count":988,"watchers_count":988,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":170,"mirror_url":null,"archived":false,"open_issues_count":80,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":170,"open_issues":80,"watchers":988,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/632"},"html":{"href":"https://github.com/clutchski/coffeelint/pull/632"},"issue":{"href":"https://api.github.com/repos/clutchski/coffeelint/issues/632"},"comments":{"href":"https://api.github.com/repos/clutchski/coffeelint/issues/632/comments"},"review_comments":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/632/comments"},"review_comment":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clutchski/coffeelint/pulls/632/commits"},"statuses":{"href":"https://api.github.com/repos/clutchski/coffeelint/statuses/f9be873f360381a11f94a893556eb98d512a0f06"}},"author_association":"NONE"}}
{"actor":{"display_login":"aminland"}}