Commit Graph

1927 Commits (d1c97b362219d62669145bb6bdd66a4be5423257)

Author SHA1 Message Date
Lucas Duailibe 658886aab1
Prevent adding semi in TypeScript interfaces when type has prettier-ignore (#3103) 2017-11-09 21:52:47 -02:00
Ika ed0f91f7be feat(playground): add options (#3222)
* chore(playground): add options

* chore(playground): re-reorder options
2017-11-09 22:30:38 +11:00
Lucas Azzola fba2e6c92d 1.8.2 2017-11-09 21:28:38 +11:00
Ika adabed2c3f chore(playground): add ruler for inputEditor (#3221) 2017-11-09 21:08:50 +11:00
Ika ec15405e56 docs(editors): sort alphabetically (#3219) 2017-11-09 21:07:50 +11:00
Ika c37e7fae2a
docs(options): add note for available version (#3217) 2017-11-09 13:39:07 +08:00
Austen Blokker 75032c3809 Add editor integration for Espresso to integrations list on website (#3215)
* Add editor integration for Espresso

* Add Espresso icon
2017-11-09 13:30:09 +08:00
Mitermayer Reis 813d9b93eb Fix typos (#3212)
* Adding --stdin-filepath option in order to enable filetype inference from
stdin

* Fixing typo on the documentation

* Fixing typos - fixing some typos

* Restoring static lib files back since they are artifacts
2017-11-09 11:44:24 +11:00
Lucas Azzola d2241fc0d5
Revert "Respect EditorConfig settings" (#3213)
* Revert "Respect EditorConfig settings (#2760)"

This reverts commit 8f58ca0f48.
2017-11-09 11:38:58 +11:00
Ika 7fb8e3fe43 fix(markdown): no break on link (#3204)
* fix(markdown): link/image url head is breakable

* fix(markdown): no break on link
2017-11-09 08:19:35 +11:00
Joseph Frazier 8f58ca0f48
Respect EditorConfig settings (#2760)
This fixes https://github.com/prettier/prettier/issues/42.
It adds support for .editorconfig's `indent_style`, `indent_size`, `tab_width`,
and `max_line_length` properties.

It doesn't support the `end_of_line` property as described in
https://github.com/prettier/prettier/issues/42#issuecomment-327073326,
but that could be added later. The same goes for `quote_type`
(https://github.com/prettier/prettier-atom/issues/293#issue-267288335).

* Make test .prettierrc not set config for all file extensions

This makes it easier to keep tests isolated.
2017-11-08 14:30:28 -05:00
Ika 9652ad75f8
docs(website): fix link (#3206) 2017-11-09 00:49:39 +08:00
Jamel Toms dc9d628874 Fix broken link to configuration page (#3205) 2017-11-09 00:43:30 +08:00
Lucas Azzola 98eb2c98b7
Add proseWrap docs (#3201) 2017-11-08 22:57:08 +11:00
Ika 4f1a2c4108 feat(markdown): add `--no-prose-wrap` option (#3199)
* feat(markdown): add `--no-prose-wrap` option

* refactor: fix typo

* refactor: fix typo

* refactor: reduce duplicate code

* docs: mention the option is for markdown
2017-11-08 21:01:06 +11:00
Olivier Tassinari a3ddcb65d2 docs(users): add Material-UI (#3198) 2017-11-08 07:30:14 +08:00
Lucas Duailibe a35257bacf Print JSON top comments as leading comments of root node (#3187)
* Make JSON top comments be leading comments of root node

* Update snapshot
2017-11-08 09:01:09 +11:00
Lucas Duailibe 68a99cf4b2 Parenthesis around TSAsExpression inside TSAbstractClassDeclaration (#3191) 2017-11-08 08:59:15 +11:00
Jeff Bowen 713497cd7d Update README to point to API doc (#3195)
https://prettier.io/docs/en/usage-options.html `404`s
2017-11-07 13:08:21 -07:00
Ika a1e3181340
refactor(markdown): simplify regex (#3194)
* refactor(markdown): simplify regex

* fix: check exact string for heading
2017-11-08 02:46:32 +08:00
Lucas Duailibe e1b3a830c3
Center "Are you using this project?" in users page (#3193) 2017-11-07 15:24:58 -02:00
Bob Nisco f0fc9f7029 Add Outreach to users (#3192) 2017-11-08 00:55:07 +08:00
Ika ec7eced099
test: lowercase the test file to avoid cross platform issue (#3189) 2017-11-07 22:07:01 +08:00
Lucas Azzola fdd0dbfdd2 1.8.1 2017-11-07 23:38:55 +11:00
Ika 18345817d8 fix(markdown): allow more cases that `_`-style emphasis is available (#3186)
* fix(markdown): add more cases `_`-style emphasis is available

* refactor: fix naming style
2017-11-07 23:33:29 +11:00
Lucas Duailibe 49b07c3983 Don't add trailing commas in JSXAttribute for arrow functions (#3181) 2017-11-07 22:37:36 +11:00
Ika ffd198beaa fix(markdown): handle additional spaces before `code` (#3180)
* fix(markdown): handle additional spaces before `code`

* test: update snapshots

* fix: ignore leading `\n` from indented `code`

* docs: add comment
2017-11-07 22:25:20 +11:00
Lucas Azzola b099771e5f
Add IRESS to users (#3185) 2017-11-07 22:18:56 +11:00
Lucas Azzola de0fec9344
Setup Algolia DocSearch (#3184) 2017-11-07 22:03:55 +11:00
Lucas Azzola e733a7706d
Force JSON to no trailing comma in multiparser (#3182)
* Force JSON to no trailing comma in multiparser

* Switch to mutate next.options
2017-11-07 22:01:40 +11:00
Ika 9d616817be fix(markdown): do not break on unbreakable place (#3177) 2017-11-07 21:10:41 +11:00
Lipis 7b9949c00d fix: Dead link for the External Tool for WebStorm (#3179)
* fix: Dead link for the External Tool for WebStorm

* Point to the website
2017-11-07 20:49:38 +11:00
Lucas Azzola 84adbff232
Upgrade docusaurus to beta.10 (#3166)
* Upgrade docusaurus to beta.10

* Fixes for highlightjs

* Load github buttons script
2017-11-07 20:47:21 +11:00
Ika 2bdb652667 fix(markdown): do not break before special prefix (#3172)
* fix(markdown): do not break before special prefix

* fix: add more cases
2017-11-07 20:40:09 +11:00
Ika 76ee59a191
chore(deps): update prettier to 1.8.0 (#3167)
* chore(deps): update prettier to 1.8.0

* refactor: fix linting
2017-11-07 16:42:38 +08:00
Haroen Viaene e62eced020 docs(users): add Algolia (#3171)
* docs(users): add Algolia

* docs(users): add Algolia image
2017-11-07 19:39:13 +11:00
Lucas Azzola b4e7942bc0
Add markdown parser to playground (#3165) 2017-11-07 17:11:31 +11:00
Lucas Azzola 3f13ab08ab
Update getSupportInfo snapshot for 1.8.0 (#3164) 2017-11-07 15:28:23 +11:00
Lucas Azzola d5666f2b92 1.8.0 2017-11-07 14:58:44 +11:00
Lucas Azzola 71a5533c4e
Move all docs to website (#3139)
* Sync README -> docs/options.md

* Sync README -> docs/*.md

* Misc fixups

* Remove markdown-toc

* Remove insert-pragma from ToC

* Never again!

* Move all docs to ./docs

* Remove yarn toc

* Fix inter-doc links

* Fix links in footer

* Clean up README.md

* Add basic description to README.md

* Use flat badges

* Move editor guides to website

* Improve prettier-ignore docs

* Fixup bad find/replace

* Add JSON to README

* Fix custom parser API link

* Fixup GitHub centering, add downloads badge

* Add 1.8 docs

* docs(website): mention markdown on homepage (#1)

* Add intro

* Add watching-files.md

* Fix markdown syntax highlighting

* Switch back to .md links
2017-11-07 14:39:07 +11:00
Lucas Duailibe 8249b1c841 Add support for JSXSpreadChild and fix comments inside JSXSpread (#3163)
* Add support for JSXSpreadChild and fix comments inside JSXSpread

* Dangling comments

* Use another approach
2017-11-07 14:23:10 +11:00
Lucas Duailibe 2c5a792d9a fix(jsx): Break opening elements with single text attribute if there's a comment (#3154)
* fix(jsx): Break opening elements with single text attribute if there's a comment

* Single text attribute with a comment on the JSXElement name

* Consolidate rules of comments in JSX
2017-11-07 08:05:59 +11:00
Josh Junon f5248d4c33 Zeit -> ZEIT in users.json (#3156) 2017-11-07 00:08:00 +08:00
Tim Neutkens b751d49572 Zeit -> ZEIT 2017-11-06 16:40:23 +01:00
Ika 1d4848b37c chore(deps): upgrade patch-level dependencies (#3153)
* chore(deps): update jest-docblock to 21.3.0-beta.7

* chore(deps): upgrade patch-level dependencies

* test: update snapshot
2017-11-07 00:38:37 +11:00
Ika ec8deb6c0b fix(markdown): print `---`-style thematic break (#3148)
* fix(markdown): print `---`-style thematic break

* test: fix diff
2017-11-05 20:50:10 +11:00
Robin Malfait d4768e1336 Update editors.md (#3144) 2017-11-04 22:30:03 +01:00
Christopher Chedeau ec18ebc6c6
[Graphql] Escape strings (#3143)
When I ran it on all the graphql files of fb, none of them had escape, but someone reported this issue!
2017-11-04 11:04:45 -07:00
Lucas Duailibe bb145c19c1 Rephrase comment 2017-11-04 01:52:27 -02:00
Lucas Duailibe 1dfffd14e7 Don't inline trailing } for arrow functions in JSX 2017-11-04 01:52:27 -02:00