millermedeiros / esformatter

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

Incorrect formatting when using spread syntax #475

Open tihomiro opened 7 years ago

tihomiro commented 7 years ago

Expected:

const methods = {
    ...mapActions({
        setBodyClass: 'ui/setBodyClass',
        setTitle: 'ui/setTitle'
    }),
    ...mapActions('user', ['login'])
};

Formatted:

const methods = {
    ...mapActions({
                setBodyClass: 'ui/setBodyClass',
                setTitle: 'ui/setTitle'
    }),
    ...mapActions('user', ['login'])
};