prettier/tests/while
Christopher Chedeau cda7650e27 Do not indent binary expressions inside of if (#604)
* Do not indent binary expressions inside of if

The reason why the indent has been added is to support the

```js
var x = a ||
  b;
```

use case where we need a level of indentation. But inside of a `if` it just looks strange

```js
if (
  a ||
    b
) {
```

because the parent already indented the first line.

Fixes #567

* Tweak logic to make more explicit
2017-02-09 10:36:05 -05:00
..
__snapshots__ Do not indent binary expressions inside of if (#604) 2017-02-09 10:36:05 -05:00
indent.js Indent while test the same way as if test (#352) 2017-01-20 09:42:16 -08:00
jsfmt.spec.js Add testing 2016-12-23 19:51:53 +00:00