So far only 12 cities in California and one in Massachusetts have announced bans on gas in new home construction. I wouldn’t call it a trend or nationwide, it’s more like an anecdote or small experiment. It’s still not clear if it is legal.
https://www.cbsnews.com/news/cities-are-banning-natural-gas-in-new-homes-because-of-climate-change/#
https://www.cbsnews.com/news/cities-are-banning-natural-gas-in-new-homes-because-of-climate-change/#
Since June, a dozen cities have banned natural gas equipment in new buildings. Berkeley, California, was the first, followed in the state by San Jose, Mountain View, Santa Rosa and Brisbane. A half-dozen other cities have passed laws to strongly encourage all-electric construction without banning fossil fuels outright.
On the East Coast, Brookline, Massachusetts, in November became the first city in the state to ban new gas hookups.