I too do that, working from a windows vm and writing code for linux - but I push it to a linux vm for testing. Never occurred to me to use WSL and have another environment to configure and maintain for dev that’s different to the target one.
But fair play if that suits you! Each to their own, and I’m sure I do things that make no sense to others.
I love having it at work, so I can write and run bash scripts on my Windows work PC.
I have dozens if Linux servers available to me but sometimes it just is easier to run a script locally.
I too do that, working from a windows vm and writing code for linux - but I push it to a linux vm for testing. Never occurred to me to use WSL and have another environment to configure and maintain for dev that’s different to the target one.
But fair play if that suits you! Each to their own, and I’m sure I do things that make no sense to others.