@herb-tools/config
v0.8.4
Published
Shared configuration utilities for Herb tools
Readme
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
:::code-group
npm add @herb-tools/configpnpm add @herb-tools/configyarn add @herb-tools/configbun add @herb-tools/config:::
Usage
.herb.yml
The configuration is stored in a .herb.yml file in the project root:
version: 0.8.4
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.
