There are lots of French residents who work in Switzerland, based on the length of the border I'd hazard to guess a much larger number than Monaco. In the case of these, they are taxed in Switzerland, not in France, saving them a LOT of money.
I've always wondered how that worked, because in Switzerland you are taxed based on the area you live, not the location of the company you work for.
I'ts complex: depending on the Swiss state you're working in the rules are different, then with COVID a layer of complexity has been added, with work-from-home exemptions being negotiated on what percentage of work-from-home-in-France can make your Swiss income a French income...
My impression is that living and working across an international border is putting your life in a quite convoluted financial and personal structured-derivative of many factors: politics, exchange-rates, social...
Each cantons with a border with France have their own bilateral agreements. In most cases, income tax is payed in the country of residence but in Geneva in particular, income tax is paid locally. The party that collect the taxes is supposed to send back a part of it to the other party according to the agreements in place but there is lots of drama around the amounts owned.
French residents are most likely still paying income tax in France (and in Switzerland too), as France most likely has a bilateral tax agreement with Switzerland. They are also taxed according to where their company (or their main place of work) is located. French citizens living in Switzerland only pay taxes in Switzerland.
I've always wondered how that worked, because in Switzerland you are taxed based on the area you live, not the location of the company you work for.