prettier/tests/ternaries
Ika 03292a6488
fix(javascript): ternary with `--use-tabs` (#3745)
* test: add test cases

* test: add test cases

* fix(javascript): ternary with `--use-tabs`

* chore: add istanbul ignore comment

* fix: remove unnecessary condition

* docs(commands): update `align`

* fix: do not transform the middle part

* refactor: markAsRoot

* fix: print tabs in sub-ternaries

* docs(commands): update

* test: add a cool test case
2018-01-26 10:02:42 +08:00
..
__snapshots__ fix(javascript): ternary with `--use-tabs` (#3745) 2018-01-26 10:02:42 +08:00
binary.js Handle conditions inside of a ternary (#2228) 2017-06-21 18:17:30 -07:00
indent.js fix(javascript): ternary with `--use-tabs` (#3745) 2018-01-26 10:02:42 +08:00
jsfmt.spec.js fix(javascript): indentation for sub-ternaries (#3747) 2018-01-16 11:32:25 +08:00
nested.js Add test for nested ternary with arrow func (#3039) 2017-10-16 09:09:57 +11:00
parenthesis.js Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450) 2017-05-01 14:32:52 -07:00
test.js Indent ternaries (#484) 2017-01-26 11:58:40 -08:00