We segmented by creating a legacy folder with the old standard and a folder for the new code that has strict linting rules.
If you created something new or did substantial changes to something existing it should go into the new folder. That way the code quality improvement became a natural part of our work process, and we did not have to touch parts just to improve code quality. For that serves quite little value by itself.