{"action":"created","comment":{"url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/comments/55915532","id":55915532,"diff_hunk":"@@ -1,3 +1,4 @@\n+require('babel-plugin-check-es2015-constants');","path":"index.js","position":1,"original_position":1,"commit_id":"daddcad68b932c4131bb814234fce2f741290d91","original_commit_id":"daddcad68b932c4131bb814234fce2f741290d91","user":{"login":"meowtec","id":4006436,"avatar_url":"https://avatars.githubusercontent.com/u/4006436?v=3","gravatar_id":"","url":"https://api.github.com/users/meowtec","html_url":"https://github.com/meowtec","followers_url":"https://api.github.com/users/meowtec/followers","following_url":"https://api.github.com/users/meowtec/following{/other_user}","gists_url":"https://api.github.com/users/meowtec/gists{/gist_id}","starred_url":"https://api.github.com/users/meowtec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meowtec/subscriptions","organizations_url":"https://api.github.com/users/meowtec/orgs","repos_url":"https://api.github.com/users/meowtec/repos","events_url":"https://api.github.com/users/meowtec/events{/privacy}","received_events_url":"https://api.github.com/users/meowtec/received_events","type":"User","site_admin":false},"body":"@jakepusateri, `babel-plugin-check-es2015-constants` will check all consts, to ensure them readOnly.\r\nexample:\r\n```\r\nconst count = 3\r\ncount = 4 // Throw an error in chrome 48: Assignment to constant variable\r\n```\r\n\r\nIf `babel-plugin-check-es2015-constants` was not require(), this example would pass in babel, and `const` may be transformed to `var`.\r\n\r\nAdd this line, babel will throw an error:\r\n```\r\nSyntaxError: test.js: \"a\" is read-only\r\n  1 | const a = 3\r\n> 2 | a = 4\r\n    | ^\r\n  3 | \r\n```\r\n","created_at":"2016-03-12T03:58:36Z","updated_at":"2016-03-12T03:58:36Z","html_url":"https://github.com/jakepusateri/auto-babel/pull/6#discussion_r55915532","pull_request_url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/comments/55915532"},"html":{"href":"https://github.com/jakepusateri/auto-babel/pull/6#discussion_r55915532"},"pull_request":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6","id":61220610,"html_url":"https://github.com/jakepusateri/auto-babel/pull/6","diff_url":"https://github.com/jakepusateri/auto-babel/pull/6.diff","patch_url":"https://github.com/jakepusateri/auto-babel/pull/6.patch","issue_url":"https://api.github.com/repos/jakepusateri/auto-babel/issues/6","number":6,"state":"open","locked":false,"title":"fix `Cannot find module babel-plugin-transform-es2015-destructuring` error when using npm2","user":{"login":"meowtec","id":4006436,"avatar_url":"https://avatars.githubusercontent.com/u/4006436?v=3","gravatar_id":"","url":"https://api.github.com/users/meowtec","html_url":"https://github.com/meowtec","followers_url":"https://api.github.com/users/meowtec/followers","following_url":"https://api.github.com/users/meowtec/following{/other_user}","gists_url":"https://api.github.com/users/meowtec/gists{/gist_id}","starred_url":"https://api.github.com/users/meowtec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meowtec/subscriptions","organizations_url":"https://api.github.com/users/meowtec/orgs","repos_url":"https://api.github.com/users/meowtec/repos","events_url":"https://api.github.com/users/meowtec/events{/privacy}","received_events_url":"https://api.github.com/users/meowtec/received_events","type":"User","site_admin":false},"body":"Npm2 does not install dependences flat, like this:\r\n```\r\n- babel-preset-es2015-auto\r\n    - babel-preset-es2015\r\n        - babel-plugin-1\r\n        - babel-plugin-2\r\n        - ...\r\n    - debug\r\n```\r\nIf use npm2, `babel-preset-es2015-auto` can not find `babel-plugin-*`.","created_at":"2016-03-01T10:21:31Z","updated_at":"2016-03-12T03:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6618ade27e6e6d2abca0445580ea18d69eafa13c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jakepusateri/auto-babel/issues/6/comments","statuses_url":"https://api.github.com/repos/jakepusateri/auto-babel/statuses/daddcad68b932c4131bb814234fce2f741290d91","head":{"label":"meowtec:fix-npm2","ref":"fix-npm2","sha":"daddcad68b932c4131bb814234fce2f741290d91","user":{"login":"meowtec","id":4006436,"avatar_url":"https://avatars.githubusercontent.com/u/4006436?v=3","gravatar_id":"","url":"https://api.github.com/users/meowtec","html_url":"https://github.com/meowtec","followers_url":"https://api.github.com/users/meowtec/followers","following_url":"https://api.github.com/users/meowtec/following{/other_user}","gists_url":"https://api.github.com/users/meowtec/gists{/gist_id}","starred_url":"https://api.github.com/users/meowtec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meowtec/subscriptions","organizations_url":"https://api.github.com/users/meowtec/orgs","repos_url":"https://api.github.com/users/meowtec/repos","events_url":"https://api.github.com/users/meowtec/events{/privacy}","received_events_url":"https://api.github.com/users/meowtec/received_events","type":"User","site_admin":false},"repo":{"id":52865520,"name":"auto-babel","full_name":"meowtec/auto-babel","owner":{"login":"meowtec","id":4006436,"avatar_url":"https://avatars.githubusercontent.com/u/4006436?v=3","gravatar_id":"","url":"https://api.github.com/users/meowtec","html_url":"https://github.com/meowtec","followers_url":"https://api.github.com/users/meowtec/followers","following_url":"https://api.github.com/users/meowtec/following{/other_user}","gists_url":"https://api.github.com/users/meowtec/gists{/gist_id}","starred_url":"https://api.github.com/users/meowtec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meowtec/subscriptions","organizations_url":"https://api.github.com/users/meowtec/orgs","repos_url":"https://api.github.com/users/meowtec/repos","events_url":"https://api.github.com/users/meowtec/events{/privacy}","received_events_url":"https://api.github.com/users/meowtec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meowtec/auto-babel","description":"","fork":true,"url":"https://api.github.com/repos/meowtec/auto-babel","forks_url":"https://api.github.com/repos/meowtec/auto-babel/forks","keys_url":"https://api.github.com/repos/meowtec/auto-babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meowtec/auto-babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meowtec/auto-babel/teams","hooks_url":"https://api.github.com/repos/meowtec/auto-babel/hooks","issue_events_url":"https://api.github.com/repos/meowtec/auto-babel/issues/events{/number}","events_url":"https://api.github.com/repos/meowtec/auto-babel/events","assignees_url":"https://api.github.com/repos/meowtec/auto-babel/assignees{/user}","branches_url":"https://api.github.com/repos/meowtec/auto-babel/branches{/branch}","tags_url":"https://api.github.com/repos/meowtec/auto-babel/tags","blobs_url":"https://api.github.com/repos/meowtec/auto-babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meowtec/auto-babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meowtec/auto-babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/meowtec/auto-babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meowtec/auto-babel/statuses/{sha}","languages_url":"https://api.github.com/repos/meowtec/auto-babel/languages","stargazers_url":"https://api.github.com/repos/meowtec/auto-babel/stargazers","contributors_url":"https://api.github.com/repos/meowtec/auto-babel/contributors","subscribers_url":"https://api.github.com/repos/meowtec/auto-babel/subscribers","subscription_url":"https://api.github.com/repos/meowtec/auto-babel/subscription","commits_url":"https://api.github.com/repos/meowtec/auto-babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/meowtec/auto-babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/meowtec/auto-babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/meowtec/auto-babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/meowtec/auto-babel/contents/{+path}","compare_url":"https://api.github.com/repos/meowtec/auto-babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meowtec/auto-babel/merges","archive_url":"https://api.github.com/repos/meowtec/auto-babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meowtec/auto-babel/downloads","issues_url":"https://api.github.com/repos/meowtec/auto-babel/issues{/number}","pulls_url":"https://api.github.com/repos/meowtec/auto-babel/pulls{/number}","milestones_url":"https://api.github.com/repos/meowtec/auto-babel/milestones{/number}","notifications_url":"https://api.github.com/repos/meowtec/auto-babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meowtec/auto-babel/labels{/name}","releases_url":"https://api.github.com/repos/meowtec/auto-babel/releases{/id}","deployments_url":"https://api.github.com/repos/meowtec/auto-babel/deployments","created_at":"2016-03-01T09:42:41Z","updated_at":"2016-03-01T09:42:42Z","pushed_at":"2016-03-01T10:05:32Z","git_url":"git://github.com/meowtec/auto-babel.git","ssh_url":"git@github.com:meowtec/auto-babel.git","clone_url":"https://github.com/meowtec/auto-babel.git","svn_url":"https://github.com/meowtec/auto-babel","homepage":null,"size":31,"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":"babel-preset"}},"base":{"label":"jakepusateri:babel-preset","ref":"babel-preset","sha":"9febbccd3fed795f0c77c72f183bca58defb65fc","user":{"login":"jakepusateri","id":2494130,"avatar_url":"https://avatars.githubusercontent.com/u/2494130?v=3","gravatar_id":"","url":"https://api.github.com/users/jakepusateri","html_url":"https://github.com/jakepusateri","followers_url":"https://api.github.com/users/jakepusateri/followers","following_url":"https://api.github.com/users/jakepusateri/following{/other_user}","gists_url":"https://api.github.com/users/jakepusateri/gists{/gist_id}","starred_url":"https://api.github.com/users/jakepusateri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakepusateri/subscriptions","organizations_url":"https://api.github.com/users/jakepusateri/orgs","repos_url":"https://api.github.com/users/jakepusateri/repos","events_url":"https://api.github.com/users/jakepusateri/events{/privacy}","received_events_url":"https://api.github.com/users/jakepusateri/received_events","type":"User","site_admin":false},"repo":{"id":39416733,"name":"auto-babel","full_name":"jakepusateri/auto-babel","owner":{"login":"jakepusateri","id":2494130,"avatar_url":"https://avatars.githubusercontent.com/u/2494130?v=3","gravatar_id":"","url":"https://api.github.com/users/jakepusateri","html_url":"https://github.com/jakepusateri","followers_url":"https://api.github.com/users/jakepusateri/followers","following_url":"https://api.github.com/users/jakepusateri/following{/other_user}","gists_url":"https://api.github.com/users/jakepusateri/gists{/gist_id}","starred_url":"https://api.github.com/users/jakepusateri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakepusateri/subscriptions","organizations_url":"https://api.github.com/users/jakepusateri/orgs","repos_url":"https://api.github.com/users/jakepusateri/repos","events_url":"https://api.github.com/users/jakepusateri/events{/privacy}","received_events_url":"https://api.github.com/users/jakepusateri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakepusateri/auto-babel","description":"","fork":false,"url":"https://api.github.com/repos/jakepusateri/auto-babel","forks_url":"https://api.github.com/repos/jakepusateri/auto-babel/forks","keys_url":"https://api.github.com/repos/jakepusateri/auto-babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakepusateri/auto-babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakepusateri/auto-babel/teams","hooks_url":"https://api.github.com/repos/jakepusateri/auto-babel/hooks","issue_events_url":"https://api.github.com/repos/jakepusateri/auto-babel/issues/events{/number}","events_url":"https://api.github.com/repos/jakepusateri/auto-babel/events","assignees_url":"https://api.github.com/repos/jakepusateri/auto-babel/assignees{/user}","branches_url":"https://api.github.com/repos/jakepusateri/auto-babel/branches{/branch}","tags_url":"https://api.github.com/repos/jakepusateri/auto-babel/tags","blobs_url":"https://api.github.com/repos/jakepusateri/auto-babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakepusateri/auto-babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakepusateri/auto-babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakepusateri/auto-babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakepusateri/auto-babel/statuses/{sha}","languages_url":"https://api.github.com/repos/jakepusateri/auto-babel/languages","stargazers_url":"https://api.github.com/repos/jakepusateri/auto-babel/stargazers","contributors_url":"https://api.github.com/repos/jakepusateri/auto-babel/contributors","subscribers_url":"https://api.github.com/repos/jakepusateri/auto-babel/subscribers","subscription_url":"https://api.github.com/repos/jakepusateri/auto-babel/subscription","commits_url":"https://api.github.com/repos/jakepusateri/auto-babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakepusateri/auto-babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakepusateri/auto-babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakepusateri/auto-babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakepusateri/auto-babel/contents/{+path}","compare_url":"https://api.github.com/repos/jakepusateri/auto-babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakepusateri/auto-babel/merges","archive_url":"https://api.github.com/repos/jakepusateri/auto-babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakepusateri/auto-babel/downloads","issues_url":"https://api.github.com/repos/jakepusateri/auto-babel/issues{/number}","pulls_url":"https://api.github.com/repos/jakepusateri/auto-babel/pulls{/number}","milestones_url":"https://api.github.com/repos/jakepusateri/auto-babel/milestones{/number}","notifications_url":"https://api.github.com/repos/jakepusateri/auto-babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakepusateri/auto-babel/labels{/name}","releases_url":"https://api.github.com/repos/jakepusateri/auto-babel/releases{/id}","deployments_url":"https://api.github.com/repos/jakepusateri/auto-babel/deployments","created_at":"2015-07-21T01:17:15Z","updated_at":"2016-02-16T10:28:05Z","pushed_at":"2016-03-01T10:21:31Z","git_url":"git://github.com/jakepusateri/auto-babel.git","ssh_url":"git@github.com:jakepusateri/auto-babel.git","clone_url":"https://github.com/jakepusateri/auto-babel.git","svn_url":"https://github.com/jakepusateri/auto-babel","homepage":null,"size":30,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":35,"default_branch":"babel-preset"}},"_links":{"self":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6"},"html":{"href":"https://github.com/jakepusateri/auto-babel/pull/6"},"issue":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/issues/6"},"comments":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jakepusateri/auto-babel/statuses/daddcad68b932c4131bb814234fce2f741290d91"}}}}