Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 320 Bytes

File metadata and controls

15 lines (12 loc) · 320 Bytes

Stop parsing invalid code (#12982 by @fisker)

// Input
const object = ({ methodName() });

// Prettier stable
const object = { methodName(); };

// Prettier main
SyntaxError: Unexpected token. (1:29)
> 1 | const object = ({ methodName() });
    |                             ^^