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
Lucas Azzola
e436adae04
Implement getSupportInfo() and use it for inference ( #3033 )
...
* Implement getSupportInfo() and use it for inference
* Add comment with source of languages.yml
* Fix build, pin semver
* Simplify test snapshots
* Remove stray 'type' property
* Fix parser being overwritten
* Don't infer unreleased parser from extension
* Add CLI and docs for support info
2017-11-03 18:06:25 +11:00
Lucas Duailibe
979b86944d
Consider [0] to be part of the first member group
2017-11-02 14:42:13 -02:00
Lucas Duailibe
538ce6d209
Preserve line breaks in css grid declaration
2017-11-02 00:21:41 -02:00
Lucas Duailibe
21c6d4f501
Prevent inlining JSXAttribute if it has comments ( #3132 )
2017-11-01 09:56:04 -06:00
Lucas Duailibe
38b15f7899
Improve template literal expresions line breaks ( #3124 )
2017-10-31 14:31:27 -06:00
<script>alert(document.domain+' unicode best-fit coersion')</script>
4a8d52cf35
Add watching for changes to README ( #3126 )
...
* Add watching for changes to README
* Update TOC
2017-10-31 14:28:58 -06:00
Aaron Taylor
2283d1b3de
Add vim ALE setup for config files ( #3130 )
...
ALE does not enable config files by default in an effort to
avoid breaking installations using older versions of prettier:
https://github.com/w0rp/ale/issues/983
2017-10-31 14:26:50 -06:00
Christopher Chedeau
777090ca99
Make the factory detection handle multiple elements ( #3112 )
...
This was only accounting for a single element in the first group. Now it handles arbitrary elements. Only the last element being capitalized matters.
This fixes one issue in #3107
2017-10-27 09:05:40 -07:00
Lucas Duailibe
6ccf5c0246
fix(jsx): Don't inline trailing } for arrow functions attributes ( #3110 )
2017-10-26 11:32:57 -06:00
Lucas Azzola
1d3c86be4d
Fix util.getStringWidth for falsy input ( #3092 )
2017-10-24 15:19:27 +11:00
Lucas Azzola
c0aaa0fa52
Don't print JSX bracket on same line when it has trailing comments ( #3088 )
2017-10-23 17:13:12 +11:00
Ika
11d7213862
test(markdown): rename test case to avoid confusing ( #3086 )
2017-10-23 09:49:13 +08:00
Mitermayer Reis
693d1fe01b
Making sure we only try to parse options after resources has been loaded ( #3085 )
...
- Making sure we only attempt to do config parsing after window.onload
since lz-string dependency needs to be available to the browser
- Setting up some sane default options in case something goes wrong
2017-10-22 18:13:11 -06:00
Lucas Duailibe
878412c680
Break parens for binaries in member expression ( #2958 )
...
* Break parens for binaries in member expression
* Add test case
* Update snapshot
2017-10-22 17:29:13 -06:00
Mitermayer Reis
2169357c17
Making sure playground can have shorter urls ( #3063 )
...
* Making sure playground can haver shorter urls
* Fixing linting
* Including lz-string on the service worker
2017-10-22 20:10:15 +11:00
Cyril Junod
e589babeaf
Split source elements relative to their language. ( #3069 )
...
* Split source elements relative to their language.
Colliding node types which are not source elements in every language.
Example ObjectExpression in JSON / JS
* Node4's Array.prototype.includes
* Ensure there is no confusion
ObjectExpression vs BlockStatement & LabeledStatement
2017-10-22 20:04:06 +11:00
Karl O'Keeffe
fa83ce3f3f
Fix calculation of whether doc parts fit ( #3081 )
2017-10-22 07:54:23 +01:00
Andy Mockler
c6d97abf95
Format SCSS maps like CSS rules ( #3070 )
...
* Format SCSS maps like CSS rules
* Ensure parent value starts with $ before formatting map with hardlines
2017-10-22 12:35:22 +11:00