Herb Configuration
Package: @herb-tools/config
Shared configuration utilities for Herb. Provides a unified way to load, validate, and manage configuration across the Herb ecosystem including the linter, formatter, and language server.
Installation
shell
npm add @herb-tools/configshell
pnpm add @herb-tools/configshell
yarn add @herb-tools/configshell
bun add @herb-tools/configUsage
.herb.yml
The configuration is stored in a .herb.yml file in the project root:
yaml
version: 0.7.5
linter:
enabled: true
rules:
erb-no-extra-newline:
enabled: false
formatter:
enabled: true
indentWidth: 2
maxLineLength: 120Configuration Hierarchy
The Herb tools follow this configuration priority:
- Project configuration (
.herb.ymlfile) - Highest priority - Editor settings (VS Code workspace/user settings)
- Default settings - Fallback when no other configuration exists
This allows teams to share consistent settings via .herb.yml while still allowing individual developer preferences when no project configuration exists.