{"action":"created","issue":{"url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/4","repository_url":"https://api.github.com/repos/dolomite-exchange/dolomite","labels_url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/4/comments","events_url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/4/events","html_url":"https://github.com/dolomite-exchange/dolomite/issues/4","id":327150284,"node_id":"MDU6SXNzdWUzMjcxNTAyODQ=","number":4,"title":"Set up prettier.js","user":{"login":"lehighjcut","id":13022754,"node_id":"MDQ6VXNlcjEzMDIyNzU0","avatar_url":"https://avatars0.githubusercontent.com/u/13022754?v=4","gravatar_id":"","url":"https://api.github.com/users/lehighjcut","html_url":"https://github.com/lehighjcut","followers_url":"https://api.github.com/users/lehighjcut/followers","following_url":"https://api.github.com/users/lehighjcut/following{/other_user}","gists_url":"https://api.github.com/users/lehighjcut/gists{/gist_id}","starred_url":"https://api.github.com/users/lehighjcut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehighjcut/subscriptions","organizations_url":"https://api.github.com/users/lehighjcut/orgs","repos_url":"https://api.github.com/users/lehighjcut/repos","events_url":"https://api.github.com/users/lehighjcut/events{/privacy}","received_events_url":"https://api.github.com/users/lehighjcut/received_events","type":"User","site_admin":false},"labels":[{"id":947603737,"node_id":"MDU6TGFiZWw5NDc2MDM3Mzc=","url":"https://api.github.com/repos/dolomite-exchange/dolomite/labels/cat:%20frontend","name":"cat: frontend","color":"4c56e0","default":false},{"id":947598079,"node_id":"MDU6TGFiZWw5NDc1OTgwNzk=","url":"https://api.github.com/repos/dolomite-exchange/dolomite/labels/cat:%20webapp","name":"cat: webapp","color":"4c56e0","default":false},{"id":947595298,"node_id":"MDU6TGFiZWw5NDc1OTUyOTg=","url":"https://api.github.com/repos/dolomite-exchange/dolomite/labels/pri:%20high","name":"pri: high","color":"d93f0b","default":false},{"id":947597613,"node_id":"MDU6TGFiZWw5NDc1OTc2MTM=","url":"https://api.github.com/repos/dolomite-exchange/dolomite/labels/type:%20task","name":"type: task","color":"d2bcf4","default":false}],"state":"open","locked":false,"assignee":{"login":"zrubenst","id":7586254,"node_id":"MDQ6VXNlcjc1ODYyNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7586254?v=4","gravatar_id":"","url":"https://api.github.com/users/zrubenst","html_url":"https://github.com/zrubenst","followers_url":"https://api.github.com/users/zrubenst/followers","following_url":"https://api.github.com/users/zrubenst/following{/other_user}","gists_url":"https://api.github.com/users/zrubenst/gists{/gist_id}","starred_url":"https://api.github.com/users/zrubenst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrubenst/subscriptions","organizations_url":"https://api.github.com/users/zrubenst/orgs","repos_url":"https://api.github.com/users/zrubenst/repos","events_url":"https://api.github.com/users/zrubenst/events{/privacy}","received_events_url":"https://api.github.com/users/zrubenst/received_events","type":"User","site_admin":false},"assignees":[{"login":"zrubenst","id":7586254,"node_id":"MDQ6VXNlcjc1ODYyNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7586254?v=4","gravatar_id":"","url":"https://api.github.com/users/zrubenst","html_url":"https://github.com/zrubenst","followers_url":"https://api.github.com/users/zrubenst/followers","following_url":"https://api.github.com/users/zrubenst/following{/other_user}","gists_url":"https://api.github.com/users/zrubenst/gists{/gist_id}","starred_url":"https://api.github.com/users/zrubenst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrubenst/subscriptions","organizations_url":"https://api.github.com/users/zrubenst/orgs","repos_url":"https://api.github.com/users/zrubenst/repos","events_url":"https://api.github.com/users/zrubenst/events{/privacy}","received_events_url":"https://api.github.com/users/zrubenst/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-29T02:22:39Z","updated_at":"2018-05-31T01:02:31Z","closed_at":null,"author_association":"COLLABORATOR","body":"Prettier: https://github.com/prettier/prettier\r\n\r\nSee package.json section here: \r\n\r\n```json\r\n  \"scripts\": {\r\n    \"start\": \"node scripts/start.js\",\r\n    \"build\": \"node scripts/build.js\",\r\n    \"test\": \"node scripts/test.js --env=jsdom\"\r\n  },\r\n  \"husky\": {\r\n    \"hooks\": {\r\n      \"pre-commit\": \"lint-staged\"\r\n    }\r\n  },\r\n  \"lint-staged\": {\r\n    \"src/**/*.{js,jsx,json}\": [\r\n      \"eslint --fix\",\r\n      \"git add\",\r\n      \"jest --bail --findRelatedTests\"\r\n    ],\r\n    \"src/**/*.{scss,css}\": [\r\n      \"stylelint --fix 'src/**/*.scss'\",\r\n      \"git add\"\r\n    ]\r\n  },\r\n```\r\n\r\nWe'll need to add a prettier command right before the `eslint --fix` command in the array of commands. Also see https://github.com/dolomite-exchange/dolomite/tree/master/web-exchange#formatting-code-automatically section of web README for info on lint-staged and husky. \r\n\r\nOnce this is done, prettier should run before all commits which will make the code uniform.\r\n\r\nIf you use WebStorm, see if you can get it so WebStorm automatically formats using prettier on some key binding or on saving. \r\n\r\nMake sure prettier is uniform with any ESLint rules"},"comment":{"url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/comments/393368076","html_url":"https://github.com/dolomite-exchange/dolomite/issues/4#issuecomment-393368076","issue_url":"https://api.github.com/repos/dolomite-exchange/dolomite/issues/4","id":393368076,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzM2ODA3Ng==","user":{"login":"zrubenst","id":7586254,"node_id":"MDQ6VXNlcjc1ODYyNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7586254?v=4","gravatar_id":"","url":"https://api.github.com/users/zrubenst","html_url":"https://github.com/zrubenst","followers_url":"https://api.github.com/users/zrubenst/followers","following_url":"https://api.github.com/users/zrubenst/following{/other_user}","gists_url":"https://api.github.com/users/zrubenst/gists{/gist_id}","starred_url":"https://api.github.com/users/zrubenst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrubenst/subscriptions","organizations_url":"https://api.github.com/users/zrubenst/orgs","repos_url":"https://api.github.com/users/zrubenst/repos","events_url":"https://api.github.com/users/zrubenst/events{/privacy}","received_events_url":"https://api.github.com/users/zrubenst/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T01:02:31Z","updated_at":"2018-05-31T01:02:31Z","author_association":"CONTRIBUTOR","body":"Done. Here's the commit: https://github.com/dolomite-exchange/dolomite/commit/29e816a58e8e64f2bded0142b7d4c03f8fced010\r\n"}}
{"actor":{"display_login":"zrubenst"}}