prettier/src/main
Georgii Dolzhykov 977b828666 Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605)
* get rid of TSParenthesizedType nodes before proceeding with formatting

* fix parens for TSIndexedAccessType, TSFunctionType, TSConditionalType

fixes #6603

* workaround edge cases with one-item unions and intersections

* fix parens for TSInferType

* fix parens for rest elements in tuple types

* refactoring

* fix function types in conditional types

* move tests for rest and optional tuple elements

* fix comment issues

* tests for unions and intersections

* add parens around multiline unions in tuple

* move the parens check for TS nodes closer to the one for Flow nodes

* update CHANGELOG.unreleased.md

* remove dead code

* fix parens for TSConstructorType

* better wording in CHANGELOG.unreleased.md
2019-10-14 15:00:21 +03:00
..
ast-to-doc.js Pass options to willPrintOwnComments() (#6081) 2019-06-04 12:48:51 -03:00
comments.js Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
core-options.js Adds LWC Parser to support unquoted interop attributes (#5800) 2019-02-01 13:58:50 +08:00
core.js Use same print width for range formatting as normal formatting. (#6050) 2019-05-04 10:18:55 -04:00
massage-ast.js refactor(massageAst): move target props to corresponding plugins (#4430) 2018-05-08 10:48:29 +08:00
multiparser.js fix: nested embeds (JS in HTML in JS) (#6038) 2019-05-27 14:42:13 -03:00
options-normalizer.js fix(api): do not report the same deprecation warning more than once (#5774) 2019-01-20 15:38:19 +08:00
options.js Plugins can have falsy default options (#6348) 2019-09-12 18:52:48 +03:00
parser.js Update ESLint to v6 (#6364) 2019-08-08 13:21:32 +03:00
range-util.js Rename "babylon" with "babel" (#5647) 2018-12-27 21:05:19 +08:00
support.js Plugins can have falsy default options (#6348) 2019-09-12 18:52:48 +03:00