Commit Graph
100 Commits
Author SHA1 Message Date
Lucas Duailibe 4edfb67f55 Include webpack to bundle the playground 2018-04-11 14:16:00 -03:00
Lucas Duailibe 46c8a4cd9d Move sw-toolbox to website dependencies (#4297) 2018-04-11 11:38:48 -03:00
Lucas Duailibe 57bc700602 Stop marking all comments in named exports as leading comments (#4292) 2018-04-10 17:05:49 -03:00
Lucas Duailibe f3626611a3 Handle ContinueStatement and BreakStatement comments (#4279) 2018-04-07 13:38:37 -03:00
Lucas Duailibe a92838facf Prevent formatting GraphQL embedded in JS if it contains invalid escape sequences (#4278) 2018-04-07 12:03:56 -03:00
Lucas Duailibe 18aaee594f Break object destructuring with nested destructuring (#4267) 2018-04-06 11:57:37 -03:00
Lucas Duailibe 2e73164b81 Fix embedded GraphQL in JS with backticks (#4265) 2018-04-05 17:52:09 -03:00
Lucas Duailibe f35d1c21d7 Handle comments before else (#4264) 2018-04-05 17:51:14 -03:00
Lucas Duailibe 85d1e8d1ee wording of the comment 2018-04-05 17:24:42 -03:00
Lucas Duailibe fa089f5bb6 If consequent is a block statement, treat as trailing comment 2018-04-05 17:22:10 -03:00
Lucas Duailibe 88489a9afe Handle comments before else 2018-04-05 16:06:18 -03:00
Lucas Duailibe e17bb5e947 Break nested ternaries (#4120) 2018-04-04 18:50:15 -06:00
Lucas Duailibe c2ee047a5d Update ISSUE_TEMPLATE.md (#4250) 2018-04-03 17:55:34 -03:00
Lucas Duailibe b72a905727 fix typo 2018-04-03 17:54:43 -03:00
Lucas Duailibe 4c363a7a2f Add docs on new pragma infrastructure (#4121) 2018-03-08 23:02:41 -03:00
Lucas Duailibe 13103101eb Move pragma detection/insertion to plugins (#3685)
New pragma infrastructure, only JS and JSON has detection/insertion implemented
2018-03-08 13:50:33 -03:00
Lucas Duailibe bb1c354453 Update yarn.lock 2018-03-08 10:44:30 -03:00
Lucas Duailibe f6f6f2e2ea Fix self-closing style tags in vue (#4108) 2018-03-06 13:06:09 -03:00
Lucas Duailibe 550904d588 Fix self-closing style tags in vue 2018-03-06 09:38:15 -03:00
Lucas Duailibe 41098a06b5 Prevent "over-indenting" class properties values (#4085) 2018-03-02 11:28:27 -03:00
Lucas Duailibe 240f09794b Fix printing ignored files with --debug-check (#4066) 2018-03-01 13:03:54 -03:00
Lucas Duailibe 2c36fb9109 Remove extraneous newline in docs/plugins.md 2018-02-21 13:34:24 -03:00
Lucas Duailibe 974b27dac2 Break JSX element if a string literal prop has a newline (#4011) 2018-02-21 10:52:30 -03:00
Lucas Duailibe aac38fca49 Force break if comment in return argument (#3665)
* Force break if comment in return argument

* add test case
2018-01-31 12:00:29 -05:00
Lucas Duailibe d0d5845af1 Bump prettier's prettier to 1.10.2 2018-01-11 00:04:30 -02:00
Lucas Duailibe 63a9561807 1.10.2 2018-01-10 23:55:34 -02:00
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