Commit Graph

1811 Commits (f9f056612f9fedf231b670a8f1eb85e57d07a0b1)

Author SHA1 Message Date
Lucas Duailibe f9f056612f
Update flow to 0.59.0 (#3238) 2017-11-26 23:14:45 -03:00
Lucas Azzola b941e30cad
Add mprettier to website editor integration list (#3316)
* Add mprettier

https://github.com/t9md/atom-mprettier

* Update editors.json
2017-11-25 13:55:39 +11:00
Lucas Duailibe 742a5c3d02
Don't add trailing comma after object rest spread in TypeScript (#3313) 2017-11-23 12:54:21 -02:00
Ika a1d878acc7 fix(cli): respect `--ignore-path` when using `--stdin-filepath` (#3309) 2017-11-23 21:54:04 +11:00
Lucas Duailibe c0fa47d2d2
Fix infinite recursion in playground (#3305) 2017-11-22 11:23:28 -02:00
Ika 76efb33e75 chore: setup markdown formatting (#3224)
* chore(deps): upgrade prettier to v1.8.2

* chore: setup lint-docs script

* docs: add `<!-- prettier-ignore -->`s

* docs: format docs

* Revert "docs: format docs"

This reverts commit 6dba903987dddc498cb589ca311905f25b6aee53.

* chore(prettierrc): set `--no-prose-wrap`

* docs: format docs

* Revert "docs: format docs"

This reverts commit 139bd744b6921916be8fac4fa3bab83bae5d12df.

* docs: tweak

* docs: format docs

* chore: rename .prettierrc

* chore: rename back to .prettierrc

* chore: split out third-party

* refactor: fix linting

* chore: do not split out third-party on website
2017-11-22 22:27:40 +11:00
Anton a0c95cf862 UTF8-BOM - if input string has BOM that mean output string also should have it (#3283)
The issue that prettier lost BOM and mean convert UTF-8 with BOM to just UTF-8
2017-11-21 14:38:21 -07:00
Lucas Duailibe 759953ef6d
Template literals: Don't break on identifiers but break if comments (#3299) 2017-11-21 15:51:15 -02:00
Ika d5a3abd7a6
fix(markdown): only indent the first non-list node in checkbox list item (#3297)
* fix(markdown): do not indent checkbox

* fix: keep alignment for first non-list node

* fix: force whitespaces
2017-11-22 00:01:59 +08:00
Nathaniel Furniss cbed0f487f fix config doc typo (#3298) 2017-11-20 18:26:33 -02:00
Ika 3cbbac3d08
fix(multiparser): fix markdown error and remove trailing new line (#3293) 2017-11-21 00:19:49 +08:00
Ika b6f126eb29 feat(markdown): support TOML (#3290) 2017-11-19 17:38:25 +11:00
Christopher Chedeau 4b070c3a93
[flow] Do not break on empty type parameters (#3281)
Not only does breaking look bad but when you have trailing comma enabled, it puts a comma there which is not valid.
2017-11-16 14:36:37 -08:00
Lipis 258de9dac8 Rename LESS -> Less (#3279) 2017-11-16 23:09:05 +08:00
Lucas Duailibe 8e5c335bda
Mutate the doc.parts array when printing fill (#3273) 2017-11-16 09:55:55 -02:00
Lucas Duailibe 66d9b266e8
Skip assertDoc calls in production (#3268) 2017-11-16 09:54:57 -02:00
Dmitriy Nevzorov b959801d6a Add 2 more users (#3259)
* Update users.json

Please add 2 our [microapps](http://microapps.com) projects to the users as we're big fun of prettier and use it everywhere now

* add properly formatted images
2017-11-16 18:21:05 +08:00
Ika 378cfee508
refactor(markdown): expose `hasPunctuation` to AST for better debugging (#3272)
* refactor(markdown): extract `punctuationRegex`

* refactor: expose `has(Leading|Trailing)Punctuaion` to AST for better debugging

* refactor: tweak

* refactor: tweak

* fix: no regression

* test: fix typo
2017-11-16 13:59:01 +08:00
Pavel Pustovalov 2332c5c8bf Add Talkable to users (#3267) 2017-11-14 19:43:15 +08:00
Diego Rodrigues Vieira b6a2436bd1 Update VSCode icon (#3266) 2017-11-14 19:29:56 +08:00
Ika b6b601815c docs(webstorm): improve image urls (#3261) 2017-11-14 18:37:15 +11:00
Mark Yu 9f7b4df23f Fix broken Webstorm image links. (#3260) 2017-11-14 10:47:04 +08:00
Ika 5820ec1e11
chore(website): fix logo filename (#3258) 2017-11-13 21:50:27 +08:00
Lipis 1464261edf Add Wire to users.json (#3257) 2017-11-13 11:45:26 -02:00
Lucas Duailibe 482c83df20
Don't break self closing elements with no attributes (#3250) 2017-11-13 02:20:17 -02:00
Ika d08df0b221
fix(markdown): handle punctuation variants (#3254)
* fix(markdown): handle punctuation variants

* docs: add comment
2017-11-13 00:09:04 +08:00
Lucas Duailibe ece764a049
Preserve intentional new lines in GraphQL (#3252)
* Preserve intentional new lines in GraphQL

* Move function to bottom

* Rename arg

* Refactor

* Add comments in tests and support for arguments
2017-11-12 02:10:54 -02:00
Ika bddbd1914d
fix(markdown): no extra whitespace between ascii punc and CJK char (#3249)
* fix(markdown): no extra whitespace between ascii punctuation and CJK character

* test: update snapshot
2017-11-12 00:38:18 +08:00
Ika 4ae52c5aa6
fix(markdown): do not enable splitText in inlineCode (#3243) 2017-11-12 00:29:59 +08:00
Ika 1cde865a11
fix(markdown): no extra whitespace between non-cjk and cjk-punctuation (#3244)
* fix(markdown): no extra whitespace between non-cjk and cjk-punctuation

* fix: no node v4 unsupported feature
2017-11-12 00:08:24 +08:00
Ika 4c6a7e8749
fix(markdown): escape all emphasis-like text (#3246)
* fix(markdown): escape all emphasis-like text

* test: add test case
2017-11-12 00:07:58 +08:00
Ika 92459047ed
fix(markdown): force print spaces (#3225) 2017-11-11 15:05:07 +08:00
Ika 49f578fb91
fix(markdown): do not break `inlineCode` (#3230) 2017-11-11 12:50:40 +08:00
David Glasser 217992fb3a docs: eslint config is orthogonal to plugin (#3229) 2017-11-10 03:16:11 -02:00
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