We don't have to limit ourselves to thinking in terms of directories and file extensions; we can apply style guides to specific types of code! You do this with Copilot by targeting the directory where that code lives.
In this example we go after our services because, thankfully, our services live in a directory called services! It's still path-based, sure, but we can now get contextual because we have a directory name.