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() }); | ^^