millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Weird indentation on close parentheses of chain #496

Open tmmcguire opened 6 years ago

tmmcguire commented 6 years ago

I'm working with a chained-style module for creating SQL statements, and I'm seeing a weird issue with the closing parenthesis of the final function:

let select= sql.select()
    .distinct()
...
    .leftJoin('g blu', ['blu.fk_unit_user_id', 'f.id'])
    .where(
        sql.and(
            'ble.event_status != "close"',
            'ble.event_status != "cancel"'
        )
);

The last ');' is not indented to match the opening '.where('. I may have something configured wrong; I'm attaching my .esformatter file.

.esformatter.txt