Code guidelines can now apply across directory boundaries
Targeted code guidelines
Code Guidelines previously applied only to the directory tree containing the guideline file, which meant guideline documents had to mirror your source layout to cover the right code. Teams can now decouple the two with a filePatterns object entry: files locates the guideline document and applyTo defines the source-file pattern it governs, so a guideline stored anywhere in the repository (for example in a shared docs/ folder) can apply to any matching files, regardless of where they live.
The existing string form remains fully supported with its directory-scoped behavior and requires no migration.
See the Code Guidelines documentation for details.
Fetched July 21, 2026


