Sylvan Mably
562b4e19d1
Fix broken footnote links ( #3353 )
2017-11-29 18:29:32 -03:00
Lucas Duailibe
ec09b9136c
Merge remote-tracking branch 'origin/master' into update-ts
2017-11-29 18:27:51 -03:00
Lucas Duailibe
a778667a4f
Bump typescript-eslint-parser
2017-11-29 18:27:19 -03:00
Lipis
2032b70918
Add Twitter social button ( #3288 )
...
* Twitter Badges
* Update README.md
* Update README.md
* Update Footer.js
* Update README.md
* Update Footer.js
2017-11-29 09:50:02 -07:00
Ika
fbbfa52517
fix(markdown): do not print linebreaks in heading ( #3343 )
2017-11-29 22:13:38 +11:00
Lucas Azzola
e04f22975d
Change "preview" to "pr"
2017-11-29 17:45:53 +11:00
Ika
ac3f74e7a3
docs(options): add available version for `arrow-parens` ( #3339 )
2017-11-29 00:20:26 +08:00
Alex Rattray
606c5abbfc
Merge pull request #3324 from suchipi/arrow_parens
...
Simple arrow function parens option
2017-11-28 10:23:56 -05:00
Lucas Duailibe
d8f54b0f13
Use released version instead of insiders
2017-11-28 10:06:28 -03:00
Lucas Duailibe
4d0acacb81
Merge branch 'master' into update-ts
2017-11-28 10:05:24 -03:00
Jacky Ho
a02e3b3464
Fix format of comment in paren of call expression in arrow expression ( #3334 )
2017-11-28 21:58:39 +11:00
Suchipi Izumi
41a9ababc3
Add updated snapshot
...
Whoops, forgot this
2017-11-27 22:27:34 -07:00
Suchipi Izumi
6abdd2c6b7
PR feedback
2017-11-27 22:27:34 -07:00
Stephen Scott
a6c12ca7a9
Inline type parameters in test callback
2017-11-27 22:27:34 -07:00
Stephen Scott
e4eb8a4065
Add implementation for arrow parens option
...
Based on https://github.com/prettier/prettier/pull/2676
* Thread `path` and `options` through helpers so we don't need to add `needsParens` onto the AST node anymore (mutation)
* Pull test call detection logic out into helper method so it can be re-used for arrow function parens
* Add arrow function parens option implementation (avoid/always)
* Don't break arrow function parens around (done) in test call
2017-11-27 22:27:34 -07:00
Stephen Scott
9a1e408a3f
Add option and specs (no implementation yet)
...
These new snapshots are from https://github.com/prettier/prettier/pull/2676
2017-11-27 22:26:58 -07:00
Artem Sapegin
172d34e43d
Do not prepend / append with a semicolon the only JSX element in a program ( #3330 )
...
* Do not prepend / append with a semicolon the only JSX element in a program
Fixes #3196
* Limit single JSX element without semicolon to Markdown only
* Fix tests
2017-11-27 22:04:12 -07:00
Lucas Duailibe
f514d1e93f
Docs build script ( #3332 )
...
* Remove artifacts from repo
* Remove docs stuff from build script
* Add new docs build script
* Add 'third-party' shim in playground worker
* Build from src if it's a PR
* Add command to package.json and remove old stuff from travis
2017-11-28 09:27:25 +11:00
Simon Lydell
56951a71b4
Don't lowercase element names and attribute names in selectors ( #3317 )
...
* Don't lowercase element names and attribute names in selectors
https://www.w3.org/TR/css3-selectors/#casesens
> All Selectors syntax is case-insensitive within the ASCII range (i.e.
> [a-z] and [A-Z] are equivalent), except for parts that are not under the
> control of Selectors. The case sensitivity of document language element
> names, attribute names, and attribute values in selectors depends on the
> document language. For example, in HTML, element names are
> case-insensitive, but in XML, they are case-sensitive.
Fixes #3304 .
* Fix number normalization in selector interpolation
2017-11-27 13:28:03 +01:00
Lucas Azzola
2dd76c6a95
Print parens around type assertions for decorators ( #3329 )
2017-11-27 23:10:33 +11:00
Ika
9b4ecec183
fix(markdown): preserve non-breakable whitespaces ( #3327 )
2017-11-27 19:37:52 +11:00
Ika
1c9ee6c5a7
chore(website): ignore `<!-- prettier-ignore -->` before passing into Docusaurus ( #3326 )
...
prettier-ignore -->` before passing into Docusaurus
2017-11-27 19:32:20 +11:00
Lucas Duailibe
2953ad0d03
Bump versions
2017-11-26 23:23:09 -03:00
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