Automatic right to remain in France after 10 years LEGAL residency - actual wording ‘ can not be subject to an obligation to leave French territory ’ - no matter where you’re from.
(Note: not a discussion as such - just a place to ‘pin’ the legislation)