{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/3503","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/3503/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/3503/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/3503/events","html_url":"https://github.com/prettier/prettier/issues/3503","id":282588714,"number":3503,"title":"Prettier 2.0","user":{"login":"azz","id":1297597,"avatar_url":"https://avatars3.githubusercontent.com/u/1297597?v=4","gravatar_id":"","url":"https://api.github.com/users/azz","html_url":"https://github.com/azz","followers_url":"https://api.github.com/users/azz/followers","following_url":"https://api.github.com/users/azz/following{/other_user}","gists_url":"https://api.github.com/users/azz/gists{/gist_id}","starred_url":"https://api.github.com/users/azz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azz/subscriptions","organizations_url":"https://api.github.com/users/azz/orgs","repos_url":"https://api.github.com/users/azz/repos","events_url":"https://api.github.com/users/azz/events{/privacy}","received_events_url":"https://api.github.com/users/azz/received_events","type":"User","site_admin":false},"labels":[{"id":741511154,"url":"https://api.github.com/repos/prettier/prettier/labels/area:api","name":"area:api","color":"fbca04","default":false},{"id":709496761,"url":"https://api.github.com/repos/prettier/prettier/labels/area:cli","name":"area:cli","color":"fbca04","default":false},{"id":708021133,"url":"https://api.github.com/repos/prettier/prettier/labels/type:meta","name":"type:meta","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":69,"created_at":"2017-12-16T01:24:02Z","updated_at":"2017-12-28T21:16:17Z","closed_at":null,"author_association":"COLLABORATOR","body":"I've been thinking a bit about what we would do **if** (don't create a milestone just yet :wink:) we were to do a Prettier 2.0 release with some API/CLI breaking changes. No significant changes to code formatting other than perhaps changing some defaults.\r\n\r\nSome candidates:\r\n\r\n* #2691 - CLI defaults to `\"**/*.{js,ts,...}\"`.\r\n  People should just be able to do `prettier --write` without passing messy globs _#0CJS_\r\n\r\n* #2846 - Replace the \"parser\" option with \"language\".\r\n  e.g. `echo \".foo {}\" | prettier --language css`\r\n  Keep `--parser flow` or perhaps support something like `--parser.js flow` for future extensibility. \r\n\r\n* #2884 - Remove the default parser.\r\n  So people using `**/*` globs don't format files like `.git/HEAD`, and remove chances of people accidentally formatting a CSS file with the babylon parser. Instead, Prettier will produce an error.\r\n\r\n* #68/#3469 - Change default value for `trailingComma` to `\"es5\"`.\r\n  The diff advantages alone are excellent, and this seems to be commonplace among the most popular JS projects.\r\n\r\n* #838 - Consistently add quotes to object keys.\r\n  e.g. put quotes around `origin` in this example:\r\n  ```js\r\n  const headers = {\r\n    'origin': 'foo.com',\r\n    'access-control-allow-origin': '*',\r\n  };\r\n  ```\r\n\r\n* Remove `--flow-parser` option.\r\n  Has been deprecated for a long time.\r\n\r\n* ~#1139 - Put a space after the `n` in `function () {}`~\r\n\r\nAlso, up for debate:\r\n\r\n- Change the default value for `singleQuote` to `true`\r\n  * Airbnb, standard, xo, and probably the majority of JS devs prefer this. Maybe do a Twitter poll to gauge opinions on this.\r\n\r\nAdditionally, while not a breaking change, adding Python support in 2.0 would be really cool.\r\n\r\nAnything else?"},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/354359137","html_url":"https://github.com/prettier/prettier/issues/3503#issuecomment-354359137","issue_url":"https://api.github.com/repos/prettier/prettier/issues/3503","id":354359137,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars0.githubusercontent.com/u/3112159?v=4","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T21:16:17Z","updated_at":"2017-12-28T21:16:17Z","author_association":"CONTRIBUTOR","body":"That doesn’t fully work for embedding, though, does it?"}}
{"actor":{"display_login":"taion"}}