src/language-js/needs-parens.js/endsWithRightBracket
function endsWithRightBracket(node) {
  switch (node.type) {
    case "ObjectExpression":
      return true;
    default:
      return false;
  }
}