Seems like a terrible idea if "different teams" actually means "random assortment of developers for this specific project." If it actually means "different teams," e.g. you rarely if ever would move from one team to another, I don't see the issue if one team uses tabs and one uses spaces, or you have different naming conventions or whatever.
Well, you use the standard you like, and the other team can use the standard they like. Then you write a micro service to convert from one standard to the other.