prettier/tests/typescript_union
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
inlining.ts TypeScript: Fix incorrectly removes double parentheses around types (#6604) 2019-10-08 16:56:08 +03:00
jsfmt.spec.js Change run_spec to have explicit parser list (#3356) 2017-11-30 03:31:52 -03:00
union-parens.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00
with-type-params.ts Fix: Union type with type params regression (#2688) 2017-08-28 18:37:12 -07:00
within-tuple.ts Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605) 2019-10-14 15:00:21 +03:00