Prettier Version: 1.6.1
Code
const abc = props.something
? xyz
: {
prop1: a,
prop2: b,
prop3: false,
};
Expected behavior:
The object in the ternary has the correct indentation as above JS snippet
Actual behavior:
We get an extra level of indentation in the object. This seems to only happen if using the --use-tabs option. If spaces are used, there is no issue.
const abc = props.something
? xyz
: {
prop1: a,
prop2: b,
prop3: false,
};
That is certainly not very pretty!
Most helpful comment
That is certainly not very pretty!