Lucas Duailibe
46baad09cd
Fix vue print error with self-closing tags ( #3705 )
2018-01-10 17:41:11 -02:00
Lucas Duailibe
01a59eeee3
Wrap conditionals and await in parens in spread property ( #3681 )
2018-01-09 01:45:51 -02:00
Lucas Duailibe
7f75499dd2
Prevent adding softline after arrow attribute with comments ( #3641 )
...
* failing test
* fix
2018-01-03 12:12:01 -08:00
Lucas Duailibe
157df6e3fd
Print imageReference with no alt in Markdown ( #3643 )
2018-01-03 13:54:53 -03:00
Lucas Duailibe
7d3a30615b
Don't add () in JSX attributes with elements ( #3640 )
2018-01-03 11:36:25 -03:00
Lucas Duailibe
6a953e47b5
Print description of enum and input for GraphQL ( #3633 )
2018-01-03 01:29:11 -03:00
Lucas Duailibe
2cb9498ab6
Output files as-is if ignored ( #3618 )
...
* fix --stdin-filepath
* output file as-is without --write
* return early
* use writeOutput
2017-12-31 18:08:09 +01:00
Lucas Duailibe
51744e1008
Print parens in FunctionTypeAnnotation when arrowParens is "always" ( #3616 )
...
* add test case
* print parens in function type annotation
2017-12-31 16:01:21 +01:00
Lucas Duailibe
4d23e9081d
Print flow type annotation comments as comments ( #3449 )
2017-12-15 05:11:48 -02:00
Lucas Duailibe
4090bd6303
Update prettier's prettier to 1.9.2
2017-12-12 01:55:44 -02:00
Lucas Duailibe
7c83ac782e
Regression test for #1473
2017-12-12 01:30:20 -02:00
Lucas Duailibe
694f9c8588
Print comment after arrow function params ( #3444 )
2017-12-12 01:26:41 -02:00
Lucas Duailibe
76c5d91ce6
1.9.2
2017-12-12 01:15:12 -02:00
Lucas Duailibe
d00d09bb87
Don't break single argument destructuring arguments ( #3443 )
2017-12-10 12:29:09 -02:00
Lucas Duailibe
3fa2229a62
Fix printing union types inside a function param type ( #3446 )
...
* Fix printing union types inside a function param type
* fix alignment
2017-12-10 20:22:13 +11:00
Lucas Duailibe
dbf22eb41a
Fix printing separator in objects with prettier-ignore ( #3448 )
2017-12-10 02:57:42 -02:00
Lucas Duailibe
69f05e42c9
Consider TSNonNullExpression part of member chain ( #3442 )
2017-12-10 02:41:53 -02:00
Lucas Duailibe
c9079926c9
Improve visibility of lint-staged usage warning ( #3445 )
2017-12-10 00:09:07 -02:00
Lucas Duailibe
934e4d3027
Fix babylon misplacing comments ( #3441 )
...
* Fix comments in class method args
* Fix comments in obj property
2017-12-09 15:43:19 -02:00
Lucas Duailibe
69f6ee7829
Only prevent lone get and set if property has no value ( #3434 )
2017-12-07 11:03:55 -02:00
Lucas Duailibe
90e8b13e86
Ignore whitespace in docblock right after /** ( #3430 )
2017-12-07 03:28:29 -02:00
Lucas Duailibe
7cff189dd8
Print trailing comma when last arg is arrow ( #3428 )
2017-12-07 02:48:11 -02:00
Lucas Duailibe
2663fd8c6d
Fix flow parser + fix CHANGELOG lint
2017-12-05 22:13:38 -02:00
Lucas Duailibe
54c31eeb78
Include CHANGELOG for 1.9.1
2017-12-05 22:04:47 -02:00
Lucas Duailibe
36c6e8368f
Bump prettier to 1.9.1 ( #3416 )
2017-12-05 21:56:49 -02:00
Lucas Duailibe
a2c0a78cef
1.9.1
2017-12-05 21:33:19 -02:00
Lucas Duailibe
36a11b86bc
Fix multiparser on playground ( #3407 )
...
* Fix multiparser in playground
* Remove unnecessary function call
2017-12-06 09:14:02 +11:00
Lucas Duailibe
7b299fb94e
Skip folders in CLI pattern ( #3411 )
2017-12-05 20:01:59 -02:00
Lucas Duailibe
c34608f8ed
Bump editorconfig-to-prettier ( #3412 )
2017-12-05 19:01:48 -02:00
Lucas Duailibe
40af2e0514
Show a right border on sidebar
2017-12-05 18:29:49 -02:00
Lucas Duailibe
8bb6e169e2
Change playground options layout ( #3374 )
2017-12-05 17:54:07 -02:00
Lucas Duailibe
c986f45ec7
fix lint
2017-12-05 17:48:10 -02:00
Lucas Duailibe
46f657bbaa
add another test case
2017-12-05 16:30:21 -02:00
Lucas Duailibe
639c523885
Skip folders in CLI pattern
2017-12-05 16:07:27 -02:00
Lucas Duailibe
66c9315d13
Don't default print comments for JSXFragments ( #3398 )
2017-12-05 08:41:45 -02:00
Lucas Duailibe
ceabc48e01
Format CSS prop for emotion ( #3381 )
2017-12-03 03:25:17 -03:00
Lucas Duailibe
24036480c5
Massage ast for template literals inside a css prop
2017-12-02 23:45:34 -03:00
Lucas Duailibe
a9be90c5d4
Format CSS prop for emotion
2017-12-02 22:50:07 -03:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
Lucas Duailibe
b2cca7eacc
Add support for JSX fragments ( #3237 )
2017-11-30 00:09:45 -03:00
Lucas Duailibe
8cbcede174
Update TypeScript to 2.6.2 ( #3331 )
2017-11-29 18:46:22 -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
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
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
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 Duailibe
742a5c3d02
Don't add trailing comma after object rest spread in TypeScript ( #3313 )
2017-11-23 12:54:21 -02:00
Lucas Duailibe
c0fa47d2d2
Fix infinite recursion in playground ( #3305 )
2017-11-22 11:23:28 -02:00
Lucas Duailibe
759953ef6d
Template literals: Don't break on identifiers but break if comments ( #3299 )
2017-11-21 15:51:15 -02: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
Lucas Duailibe
482c83df20
Don't break self closing elements with no attributes ( #3250 )
2017-11-13 02:20:17 -02: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
Lucas Duailibe
658886aab1
Prevent adding semi in TypeScript interfaces when type has prettier-ignore ( #3103 )
2017-11-09 21:52:47 -02: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
Lucas Duailibe
e1b3a830c3
Center "Are you using this project?" in users page ( #3193 )
2017-11-07 15:24:58 -02:00
Lucas Duailibe
49b07c3983
Don't add trailing commas in JSXAttribute for arrow functions ( #3181 )
2017-11-07 22:37:36 +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
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 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
Lucas Duailibe
6ccf5c0246
fix(jsx): Don't inline trailing } for arrow functions attributes ( #3110 )
2017-10-26 11:32:57 -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
Lucas Duailibe
b53a426e15
Prevent breaking MemberExpression inside NewExpression ( #3075 )
...
* Test case
* Prevent breaking MemberExpression inside NewExpression
2017-10-22 10:30:05 +11:00
Lucas Duailibe
465729685f
Fix indentation of intersection object types ( #3074 )
2017-10-21 17:45:41 +11:00
Lucas Duailibe
158edf5388
typo: ident -> indent
2017-10-18 11:54:44 -02:00
Lucas Duailibe
4b4a15b842
doc(resolveConfig): document options.config ( #3050 )
2017-10-18 14:16:02 +11:00
Lucas Duailibe
f82fcbc98e
Prevent formatting GQL template literals with expressions ( #2975 )
...
* Prevent formatting GQL template literals with expressions
* Remove unnecessary check
* Change quasis check to expression check
2017-10-05 11:23:57 +11:00
Lucas Duailibe
2466ce11a5
Force template literals to break after ` for sytled-components ( #2926 )
...
Force template literals to break after ` for styled-components
2017-10-02 17:55:42 +02:00
Lucas Duailibe
038d02b3e2
Revert "Fix line break in test declarations with a single argument function declaration" ( #2912 )
...
This reverts commit 3703cb5b07 .
2017-09-27 21:32:34 +02:00
Lucas Duailibe
3703cb5b07
Fix line break in test declarations with a single argument function declaration ( #2877 )
2017-09-26 19:24:25 +02:00
Lucas Duailibe
9b0d6b8de0
Fix different precedence binary expression when inlining ( #2827 )
2017-09-20 17:07:51 +02:00
Lucas Duailibe
f51929e262
Lint fix
2017-09-10 15:00:52 -06:00
Lucas Duailibe
902f7f0339
Use same logic for binary chain
2017-09-10 15:00:52 -06:00
Lucas Duailibe
1b2127efb6
Update snapshot
2017-09-10 15:00:52 -06:00
Lucas Duailibe
bd78572b19
Break closing paren of ConditionalExpression in member chains
2017-09-10 15:00:52 -06:00
Lucas Duailibe
955a2c1472
Keep conditional expressions in one line on method chains ( #2784 )
...
Fixes #2775 .
This commit will make conditional expressions to match the behavior of
logical expression in method chains:
```js
(a ? b : c).map()
// if the conditional fits in oneline
(a ? b : c)
.map()
// if the conditional doesn't fit
(a
? b
: c)
.map()
```
2017-09-10 08:34:55 -07:00
Lucas Duailibe
bba7dcf498
Fix break on conditional expressions inside return
...
Fixes #2777
Since we can't break after `return` and don't add `()` around
ConditionalExpressions' tests, we end up with some weird indentation when
breaking.
2017-09-10 04:13:47 -06:00
Lucas Duailibe
85f1351366
Fix unused var
2017-09-07 21:57:07 -06:00
Lucas Duailibe
3cfee9c976
Clarification of code
2017-09-07 21:57:07 -06:00
Lucas Duailibe
2c37697f82
Fix chained logical expressions with objects/array/etc inlined
2017-09-07 21:57:07 -06:00
Lucas Duailibe
f964be5f8a
Remove unnecessary tests
2017-09-07 21:29:53 -06:00
Lucas Duailibe
541e929b43
Change how JSX mode is activated in ternaries
2017-09-07 21:29:53 -06:00
Lucas Duailibe
15989df6e1
Group last argument if it's an empty object with a comment ( #2758 )
2017-09-05 12:22:25 -07:00
Lucas Duailibe
8e9fb43841
Fix trailing comment on switch case ( #1136 )
...
* Fix trailing comment on switch case
* Use unshift and add another test case
2017-04-05 16:27:14 -07:00
Lucas Duailibe
69879e23bc
Print comment after key ( #1131 )
2017-04-05 13:10:10 -07:00