Switch not required to be on knob side
We recently had a new front door installed, and the place ordered and installed the opposite swing from what it was supposed to be. So after the install, the door knob was on the right side of the door, instead of the left, like it was prior. And the light switches were on the left side too. So I did some investigating and found that it wasn't a violation of NEC, which doesn't stipulate what side the switches have to be on. But it the door swing direction was more an issue of natural flow into/out of the house. where the switches were, where the mailbox was, etc. And in case you're wondering, the door company replaced the door at no cost to get it back to the proper swing direction.