prettier/tests/typescript_intersection
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
intersection-parens.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
jsfmt.spec.js TypeScript: Fix incorrectly removes double parentheses around types (#6604) 2019-10-08 16:56:08 +03:00