Luka Doncic became the first NBA player to record six consecutive 30-point triple-doubles as the Mavericks beat the Pistons 142-124.