output-style-name-directory-mismatch
Output style name must match parent directory name
Error
Rule Details
This rule checks that the name field in the frontmatter of output style markdown files matches the name of the parent directory. This naming convention is required for proper organization and discovery of output styles. A mismatch means the output style may not be found when referenced by directory name, causing unexpected fallback behavior.
Incorrect
Output style name does not match directory (file at styles/compact/README.md)
yaml
---
name: verbose
---
Output style content here.Correct
Output style name matches directory (file at styles/compact/README.md)
yaml
---
name: compact
---
Output style content here.How To Fix
Either rename the parent directory to match the name in frontmatter, or update the name in frontmatter to match the directory name.
Options
This rule does not have any configuration options.
Related Rules
Resources
Version
Available since: v0.2.0