Have you considered a machine running Linux?
I'm planning to buy a new laptop in a near future and I'm thinking of the Dell XPS 13 or 15.
I'm currently writing on a 2013 Dell XPS 13 running Fedora 26. Battery life is really bad lately I have to say, but other than that, I love it.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.