Lots of formatters also unify things like trailing commas, so it would be slightly more involved than this.