prettier/tests/typescript_optional_type
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
..
__snapshots__ Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
complex.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
jsfmt.spec.js feat(typescript): support TSOptionalType and TSRestType (#4757) 2018-06-30 09:10:56 +08:00
simple.ts feat(typescript): support TSOptionalType and TSRestType (#4757) 2018-06-30 09:10:56 +08:00