{"action":"created","comment":{"url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/comments/35645223","id":35645223,"diff_hunk":"@@ -0,0 +1,40 @@\n+'use babel';\n+\n+import { Range } from 'atom';\n+import jsonlint  from 'jsonlint';\n+\n+export default class LinterJsonLint {\n+\n+  static regex = '.+?line\\\\s(\\\\d+)'\n+\n+  static provideLinter() {\n+    return {\n+      grammarScopes: ['source.json'],\n+      scope: 'file',\n+      lintOnFly: true,\n+      lint: (editor) => {\n+\n+        let path = editor.getPath();\n+        let text = editor.getText();\n+\n+        try {\n+          jsonlint.parse(text);\n+        } catch (e) {\n+\n+          let line = Number(e.message.match(this.regex)[1]);\n+          let column = 0;\n+\n+          return [{\n+            type: 'error',\n+            text: e.message,\n+            filePath: path,\n+            range: new Range([line, column], [line, column])","path":"index.js","position":31,"original_position":31,"commit_id":"133d256796098e7ae10a5970fe7ddaccac7933d0","original_commit_id":"133d256796098e7ae10a5970fe7ddaccac7933d0","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"body":"You might wanna make this `range: new Range([line, column], [line, column + 1])`\r\nas a decoration with `0` char diff will never show a bubble for the user.","created_at":"2015-07-28T13:19:17Z","updated_at":"2015-07-28T13:19:17Z","html_url":"https://github.com/AtomLinter/linter-jsonlint/pull/15#discussion_r35645223","pull_request_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/comments/35645223"},"html":{"href":"https://github.com/AtomLinter/linter-jsonlint/pull/15#discussion_r35645223"},"pull_request":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15","id":40865242,"html_url":"https://github.com/AtomLinter/linter-jsonlint/pull/15","diff_url":"https://github.com/AtomLinter/linter-jsonlint/pull/15.diff","patch_url":"https://github.com/AtomLinter/linter-jsonlint/pull/15.patch","issue_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/15","number":15,"state":"open","locked":false,"title":"Rewrite","user":{"login":"1000ch","id":1800018,"avatar_url":"https://avatars.githubusercontent.com/u/1800018?v=3","gravatar_id":"","url":"https://api.github.com/users/1000ch","html_url":"https://github.com/1000ch","followers_url":"https://api.github.com/users/1000ch/followers","following_url":"https://api.github.com/users/1000ch/following{/other_user}","gists_url":"https://api.github.com/users/1000ch/gists{/gist_id}","starred_url":"https://api.github.com/users/1000ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1000ch/subscriptions","organizations_url":"https://api.github.com/users/1000ch/orgs","repos_url":"https://api.github.com/users/1000ch/repos","events_url":"https://api.github.com/users/1000ch/events{/privacy}","received_events_url":"https://api.github.com/users/1000ch/received_events","type":"User","site_admin":false},"body":"- [x] rewrite with es6\r\n\r\nrelated to https://github.com/AtomLinter/linter-plus/issues/58","created_at":"2015-07-27T02:09:36Z","updated_at":"2015-07-28T13:19:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd7885f1bcad3d5eea0fb50840e3ad2fb8767ca0","assignee":{"login":"iam4x","id":893837,"avatar_url":"https://avatars.githubusercontent.com/u/893837?v=3","gravatar_id":"","url":"https://api.github.com/users/iam4x","html_url":"https://github.com/iam4x","followers_url":"https://api.github.com/users/iam4x/followers","following_url":"https://api.github.com/users/iam4x/following{/other_user}","gists_url":"https://api.github.com/users/iam4x/gists{/gist_id}","starred_url":"https://api.github.com/users/iam4x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iam4x/subscriptions","organizations_url":"https://api.github.com/users/iam4x/orgs","repos_url":"https://api.github.com/users/iam4x/repos","events_url":"https://api.github.com/users/iam4x/events{/privacy}","received_events_url":"https://api.github.com/users/iam4x/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15/commits","review_comments_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15/comments","review_comment_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/15/comments","statuses_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/statuses/133d256796098e7ae10a5970fe7ddaccac7933d0","head":{"label":"1000ch:master","ref":"master","sha":"133d256796098e7ae10a5970fe7ddaccac7933d0","user":{"login":"1000ch","id":1800018,"avatar_url":"https://avatars.githubusercontent.com/u/1800018?v=3","gravatar_id":"","url":"https://api.github.com/users/1000ch","html_url":"https://github.com/1000ch","followers_url":"https://api.github.com/users/1000ch/followers","following_url":"https://api.github.com/users/1000ch/following{/other_user}","gists_url":"https://api.github.com/users/1000ch/gists{/gist_id}","starred_url":"https://api.github.com/users/1000ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1000ch/subscriptions","organizations_url":"https://api.github.com/users/1000ch/orgs","repos_url":"https://api.github.com/users/1000ch/repos","events_url":"https://api.github.com/users/1000ch/events{/privacy}","received_events_url":"https://api.github.com/users/1000ch/received_events","type":"User","site_admin":false},"repo":{"id":39717147,"name":"linter-jsonlint","full_name":"1000ch/linter-jsonlint","owner":{"login":"1000ch","id":1800018,"avatar_url":"https://avatars.githubusercontent.com/u/1800018?v=3","gravatar_id":"","url":"https://api.github.com/users/1000ch","html_url":"https://github.com/1000ch","followers_url":"https://api.github.com/users/1000ch/followers","following_url":"https://api.github.com/users/1000ch/following{/other_user}","gists_url":"https://api.github.com/users/1000ch/gists{/gist_id}","starred_url":"https://api.github.com/users/1000ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1000ch/subscriptions","organizations_url":"https://api.github.com/users/1000ch/orgs","repos_url":"https://api.github.com/users/1000ch/repos","events_url":"https://api.github.com/users/1000ch/events{/privacy}","received_events_url":"https://api.github.com/users/1000ch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1000ch/linter-jsonlint","description":"Atom linter plugin for JSON, using jsonlint.","fork":true,"url":"https://api.github.com/repos/1000ch/linter-jsonlint","forks_url":"https://api.github.com/repos/1000ch/linter-jsonlint/forks","keys_url":"https://api.github.com/repos/1000ch/linter-jsonlint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1000ch/linter-jsonlint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1000ch/linter-jsonlint/teams","hooks_url":"https://api.github.com/repos/1000ch/linter-jsonlint/hooks","issue_events_url":"https://api.github.com/repos/1000ch/linter-jsonlint/issues/events{/number}","events_url":"https://api.github.com/repos/1000ch/linter-jsonlint/events","assignees_url":"https://api.github.com/repos/1000ch/linter-jsonlint/assignees{/user}","branches_url":"https://api.github.com/repos/1000ch/linter-jsonlint/branches{/branch}","tags_url":"https://api.github.com/repos/1000ch/linter-jsonlint/tags","blobs_url":"https://api.github.com/repos/1000ch/linter-jsonlint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1000ch/linter-jsonlint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1000ch/linter-jsonlint/git/refs{/sha}","trees_url":"https://api.github.com/repos/1000ch/linter-jsonlint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1000ch/linter-jsonlint/statuses/{sha}","languages_url":"https://api.github.com/repos/1000ch/linter-jsonlint/languages","stargazers_url":"https://api.github.com/repos/1000ch/linter-jsonlint/stargazers","contributors_url":"https://api.github.com/repos/1000ch/linter-jsonlint/contributors","subscribers_url":"https://api.github.com/repos/1000ch/linter-jsonlint/subscribers","subscription_url":"https://api.github.com/repos/1000ch/linter-jsonlint/subscription","commits_url":"https://api.github.com/repos/1000ch/linter-jsonlint/commits{/sha}","git_commits_url":"https://api.github.com/repos/1000ch/linter-jsonlint/git/commits{/sha}","comments_url":"https://api.github.com/repos/1000ch/linter-jsonlint/comments{/number}","issue_comment_url":"https://api.github.com/repos/1000ch/linter-jsonlint/issues/comments{/number}","contents_url":"https://api.github.com/repos/1000ch/linter-jsonlint/contents/{+path}","compare_url":"https://api.github.com/repos/1000ch/linter-jsonlint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1000ch/linter-jsonlint/merges","archive_url":"https://api.github.com/repos/1000ch/linter-jsonlint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1000ch/linter-jsonlint/downloads","issues_url":"https://api.github.com/repos/1000ch/linter-jsonlint/issues{/number}","pulls_url":"https://api.github.com/repos/1000ch/linter-jsonlint/pulls{/number}","milestones_url":"https://api.github.com/repos/1000ch/linter-jsonlint/milestones{/number}","notifications_url":"https://api.github.com/repos/1000ch/linter-jsonlint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1000ch/linter-jsonlint/labels{/name}","releases_url":"https://api.github.com/repos/1000ch/linter-jsonlint/releases{/id}","created_at":"2015-07-26T07:09:15Z","updated_at":"2015-07-26T07:47:50Z","pushed_at":"2015-07-27T02:08:36Z","git_url":"git://github.com/1000ch/linter-jsonlint.git","ssh_url":"git@github.com:1000ch/linter-jsonlint.git","clone_url":"https://github.com/1000ch/linter-jsonlint.git","svn_url":"https://github.com/1000ch/linter-jsonlint","homepage":"","size":94,"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":"AtomLinter:master","ref":"master","sha":"aa189dd539e574f8f4a0f4ef283ecdcc3de284e7","user":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":20198994,"name":"linter-jsonlint","full_name":"AtomLinter/linter-jsonlint","owner":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AtomLinter/linter-jsonlint","description":"Atom linter plugin for JSON, using jsonlint.","fork":false,"url":"https://api.github.com/repos/AtomLinter/linter-jsonlint","forks_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/forks","keys_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/teams","hooks_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/hooks","issue_events_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/events{/number}","events_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/events","assignees_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/assignees{/user}","branches_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/branches{/branch}","tags_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/tags","blobs_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/statuses/{sha}","languages_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/languages","stargazers_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/stargazers","contributors_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/contributors","subscribers_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/subscribers","subscription_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/subscription","commits_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/contents/{+path}","compare_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/merges","archive_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/downloads","issues_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues{/number}","pulls_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls{/number}","milestones_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/milestones{/number}","notifications_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/labels{/name}","releases_url":"https://api.github.com/repos/AtomLinter/linter-jsonlint/releases{/id}","created_at":"2014-05-26T21:30:49Z","updated_at":"2015-06-25T04:32:47Z","pushed_at":"2015-07-27T02:09:37Z","git_url":"git://github.com/AtomLinter/linter-jsonlint.git","ssh_url":"git@github.com:AtomLinter/linter-jsonlint.git","clone_url":"https://github.com/AtomLinter/linter-jsonlint.git","svn_url":"https://github.com/AtomLinter/linter-jsonlint","homepage":"","size":223,"stargazers_count":6,"watchers_count":6,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15"},"html":{"href":"https://github.com/AtomLinter/linter-jsonlint/pull/15"},"issue":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/15"},"comments":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/AtomLinter/linter-jsonlint/statuses/133d256796098e7ae10a5970fe7ddaccac7933d0"}}}}