{"action":"created","issue":{"url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/133","repository_url":"https://api.github.com/repos/jadjoubran/codetogo.io","labels_url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/133/comments","events_url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/133/events","html_url":"https://github.com/jadjoubran/codetogo.io/pull/133","id":312779667,"number":133,"title":"Format usecases using prettier","user":{"login":"102","id":5839225,"avatar_url":"https://avatars1.githubusercontent.com/u/5839225?v=4","gravatar_id":"","url":"https://api.github.com/users/102","html_url":"https://github.com/102","followers_url":"https://api.github.com/users/102/followers","following_url":"https://api.github.com/users/102/following{/other_user}","gists_url":"https://api.github.com/users/102/gists{/gist_id}","starred_url":"https://api.github.com/users/102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/102/subscriptions","organizations_url":"https://api.github.com/users/102/orgs","repos_url":"https://api.github.com/users/102/repos","events_url":"https://api.github.com/users/102/events{/privacy}","received_events_url":"https://api.github.com/users/102/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-10T05:39:47Z","updated_at":"2018-04-10T12:13:24Z","closed_at":"2018-04-10T12:13:13Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jadjoubran/codetogo.io/pulls/133","html_url":"https://github.com/jadjoubran/codetogo.io/pull/133","diff_url":"https://github.com/jadjoubran/codetogo.io/pull/133.diff","patch_url":"https://github.com/jadjoubran/codetogo.io/pull/133.patch"},"body":"I have formatted usecases markdown files with [Prettier](https://github.com/prettier/prettier). It's kind of good to have all the indentations, quote types & overall formatting same across examples.\r\n\r\nIf you need to do it again later, you can just use `npx prettier --tab-width 4 --single-quote --write *.md` snippet (assuming you have npm >5.2).\r\n\r\nIf you're interested in this, I can try to add `lint-staged` & `husky` packages to automatically format all the md & js files in `precommit` hook."},"comment":{"url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/comments/380076681","html_url":"https://github.com/jadjoubran/codetogo.io/pull/133#issuecomment-380076681","issue_url":"https://api.github.com/repos/jadjoubran/codetogo.io/issues/133","id":380076681,"user":{"login":"jadjoubran","id":2265232,"avatar_url":"https://avatars2.githubusercontent.com/u/2265232?v=4","gravatar_id":"","url":"https://api.github.com/users/jadjoubran","html_url":"https://github.com/jadjoubran","followers_url":"https://api.github.com/users/jadjoubran/followers","following_url":"https://api.github.com/users/jadjoubran/following{/other_user}","gists_url":"https://api.github.com/users/jadjoubran/gists{/gist_id}","starred_url":"https://api.github.com/users/jadjoubran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadjoubran/subscriptions","organizations_url":"https://api.github.com/users/jadjoubran/orgs","repos_url":"https://api.github.com/users/jadjoubran/repos","events_url":"https://api.github.com/users/jadjoubran/events{/privacy}","received_events_url":"https://api.github.com/users/jadjoubran/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T12:13:24Z","updated_at":"2018-04-10T12:13:24Z","author_association":"OWNER","body":"wow that's awesome!!! 🎉 😄 \r\nI had no idea you could run prettier on code blocks inside `md` files\r\nbut I was thinking that hey probably need some formatting fixes\r\n\r\nThanks a lot for this!\r\nYes please, it would be great if you can send a PR for the precommit hook\r\nalthough I think, I'd have to manually set it up no?\r\nwe can also add an `npm script format` to fix all the formatting\r\nwhat do you think?"}}
{"actor":{"display_login":"jadjoubran"}}