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
Lucas Duailibe
b53a426e15
Prevent breaking MemberExpression inside NewExpression ( #3075 )
...
* Test case
* Prevent breaking MemberExpression inside NewExpression
2017-10-22 10:30:05 +11:00
Mutasem Aldmour
54bdd30595
Fix first argument left behind when line breaks ( #3079 )
...
* fixing issue #2984
* removed typescript from test #2984
* prettier
* removed obsolete test copied from another
* added verification parsers
* added new line
2017-10-21 23:12:26 +11:00
Lucas Azzola
4043ea655e
Add prettier-tslint and stylelint-config-prettier to related projects ( #3078 )
2017-10-21 17:50:18 +11:00
Lucas Duailibe
465729685f
Fix indentation of intersection object types ( #3074 )
2017-10-21 17:45:41 +11:00
Brian Ng
12f028cd46
Fix formatting styled(Foo).attrs(...)`` ( #3073 )
2017-10-21 09:10:55 +11:00
Jacky Ho
5b7b012fcd
Account for empty lines in long member call chain ( #3035 )
...
* Account for empty lines in member chain
* Add tests
* Account for parens
* Improve tests
* Add some comments
* Remove an outdated comment
* Fix lint errors
* Refactor a line of code
* Add one more comment for clarification
2017-10-19 09:25:51 +11:00
Stephen Scott
11624eec20
Merge pull request #3055 from azz/$schema
...
Delete $schema from resolved config
2017-10-18 15:08:36 -06:00
Brian Ng
5f8fc9e489
Merge pull request #3057 from duailibe/ident-typo
...
Fix typo: ident -> indent
2017-10-18 09:04:05 -05:00
Lucas Duailibe
158edf5388
typo: ident -> indent
2017-10-18 11:54:44 -02:00
Lucas Azzola
d5de6ac84f
Delete $schema from resolved config
2017-10-18 23:54:55 +11:00
Lucas Azzola
7162e1ecc8
Keep parens around TSAsExpression in ConditionalExpression ( #3053 )
2017-10-18 20:03:58 +11:00
Lucas Duailibe
4b4a15b842
doc(resolveConfig): document options.config ( #3050 )
2017-10-18 14:16:02 +11:00
Lucas Azzola
624d89e7a5
Print pipeline and nullish-coalescing operators ( #3036 )
2017-10-16 09:13:25 +11:00
Brian Ng
d90aec1a1d
Add test for nested ternary with arrow func ( #3039 )
2017-10-16 09:09:57 +11:00
Luiz Fernando Rodrigues
3c5dae3702
Update Sublime Text and VSCode logos ( #3041 )
2017-10-15 10:31:30 -05:00
Lucas Azzola
21d7561ecd
Resolve file paths relative to config file ( #3037 )
...
* Add currently passing test case for #3005
* Fix test to fail without code change
2017-10-15 18:32:16 +11:00
Ika
c27cc7ff45
feat(markdown): support CJK and emoji ( #3026 )
...
* refactor: extract `splitText`
* fix: respcet CJK width in table
* test: add failing test
* fix: support emoji
* test: add failing test
* feat: support CJK character
* feat: enable adding whitespace between non-CJK/CJK-character by default
* fix: do not print softline at node that is sensitive to its identifier
* fix: treat full-width whitespace as CJK punctuation
* disallow leading/trailing full-width whitespace
* feat: remove `--split-cjk-text` option and enable it by default
* refactor: simplify regex and remove unnecessary `g` flag
2017-10-14 23:57:31 -05:00
Ika
c3b965145b
feat(markdown): auto-detect which number style of ordered list to be used ( #3029 )
2017-10-14 22:53:58 +11:00