{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/chronicle/issues/339","labels_url":"https://api.github.com/repos/mozilla/chronicle/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/chronicle/issues/339/comments","events_url":"https://api.github.com/repos/mozilla/chronicle/issues/339/events","html_url":"https://github.com/mozilla/chronicle/pull/339","id":57674957,"number":339,"title":"chore(build): replace precommit-hook with husky for auto linting","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/chronicle/labels/in-progress","name":"in-progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"6a68","id":96396,"avatar_url":"https://avatars.githubusercontent.com/u/96396?v=3","gravatar_id":"","url":"https://api.github.com/users/6a68","html_url":"https://github.com/6a68","followers_url":"https://api.github.com/users/6a68/followers","following_url":"https://api.github.com/users/6a68/following{/other_user}","gists_url":"https://api.github.com/users/6a68/gists{/gist_id}","starred_url":"https://api.github.com/users/6a68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/6a68/subscriptions","organizations_url":"https://api.github.com/users/6a68/orgs","repos_url":"https://api.github.com/users/6a68/repos","events_url":"https://api.github.com/users/6a68/events{/privacy}","received_events_url":"https://api.github.com/users/6a68/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-02-14T01:20:44Z","updated_at":"2015-02-17T22:29:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/chronicle/pulls/339","html_url":"https://github.com/mozilla/chronicle/pull/339","diff_url":"https://github.com/mozilla/chronicle/pull/339.diff","patch_url":"https://github.com/mozilla/chronicle/pull/339.patch"},"body":"Replacing **precommit-hook** module with [**husky**](https://www.npmjs.com/package/husky) so we can remove some sketchy automated JSHint logic included in **precommit-hook** and convert the hook from \"pre-commit\" to \"pre-push\". See https://github.com/mozilla/chronicle/issues/322 for some more context.\r\n\r\nThis doesn't address the core issue of #322 (_\"git pre-commit linter should only run on files in the git index\"_), but should give a slight performance bump (if you like to `git commit` a lot and `git push` a little).\r\n\r\n### How do I even?\r\n\r\nTo install/test this, I recommend cleaning out any existing git hooks in your ./.git/hooks/ directory that may have been set up by **precommit-hook** _before_ running `npm install`. The **husky** npm install will recreate any hooks that it watches (notably \"precommit\", \"prepush\", and \"postmerge\").\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/chronicle/issues/comments/74769029","html_url":"https://github.com/mozilla/chronicle/pull/339#issuecomment-74769029","issue_url":"https://api.github.com/repos/mozilla/chronicle/issues/339","id":74769029,"user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T22:29:51Z","updated_at":"2015-02-17T22:29:51Z","body":"Rebased and Travis says we're green. Treating myself!"}}