{"action":"created","issue":{"url":"https://api.github.com/repos/jlongster/prettier/issues/461","repository_url":"https://api.github.com/repos/jlongster/prettier","labels_url":"https://api.github.com/repos/jlongster/prettier/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/jlongster/prettier/issues/461/comments","events_url":"https://api.github.com/repos/jlongster/prettier/issues/461/events","html_url":"https://github.com/jlongster/prettier/issues/461","id":203174703,"number":461,"title":"Inserting space before comma in objects with non-trivial value","user":{"login":"joefiorini","id":3648,"avatar_url":"https://avatars.githubusercontent.com/u/3648?v=3","gravatar_id":"","url":"https://api.github.com/users/joefiorini","html_url":"https://github.com/joefiorini","followers_url":"https://api.github.com/users/joefiorini/followers","following_url":"https://api.github.com/users/joefiorini/following{/other_user}","gists_url":"https://api.github.com/users/joefiorini/gists{/gist_id}","starred_url":"https://api.github.com/users/joefiorini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefiorini/subscriptions","organizations_url":"https://api.github.com/users/joefiorini/orgs","repos_url":"https://api.github.com/users/joefiorini/repos","events_url":"https://api.github.com/users/joefiorini/events{/privacy}","received_events_url":"https://api.github.com/users/joefiorini/received_events","type":"User","site_admin":false},"labels":[{"id":491115803,"url":"https://api.github.com/repos/jlongster/prettier/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-25T17:49:26Z","updated_at":"2017-01-25T18:11:24Z","closed_at":null,"body":"It seems when I have an object with a key pointing to a non-trivial value and am using trailing commas, prettier inserts a space before the comma. Since it does not insert a space before commas normally, I assume this is a bug. FWIW, I couldn't reproduce on the live editor linked from this github repo (which appears to be based on the last release), so I'm assuming this is a recent problem introduced in master.\r\n\r\nI created a failing spec here: https://github.com/joefiorini/prettier/blob/space-before-trailing-comma/tests/trailing_comma/object.js. I took a stab at making it pass, but don't have time atm to wrap my head around how it all works."},"comment":{"url":"https://api.github.com/repos/jlongster/prettier/issues/comments/275186623","html_url":"https://github.com/jlongster/prettier/issues/461#issuecomment-275186623","issue_url":"https://api.github.com/repos/jlongster/prettier/issues/461","id":275186623,"user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"created_at":"2017-01-25T18:11:24Z","updated_at":"2017-01-25T18:11:24Z","body":"https://github.com/jlongster/prettier/pull/463 fixes it!"}}
{"actor":{"display_login":"vjeux"}}