Files
test-repo/tests/typescript_union
Sosuke SuzukiandGeorgii Dolzhykov 8a48ca2e3d [TypeScript] format TSAsExpression with same logic as BinaryExpression (#7869)
* Treat TSAsExpression as like BinaryishNode

* Change test file extension, as.js => as.ts

* Add tests

* Remove old case for TSAsExpression

* Remove unnecesary condition

* Fix by lint

* Update snapshots

* Add changelog

* Remove convetToBinaryishNode

* Fix comment

* Use getBinaryishNodeNames

* Modify to wrap TSAsExpression with parens

* Fix by lint

* Do not pass operator when node is TSAsExpression

* Refactor shouldNotIndent

* Update util.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-03-31 20:25:47 +09:00
..