|
| 1 | +# This file configures Herb for your project and team. |
| 2 | +# Settings here take precedence over individual editor preferences. |
| 3 | +# |
| 4 | +# Herb is a suite of tools for HTML+ERB templates including: |
| 5 | +# - Linter: Validates templates and enforces best practices |
| 6 | +# - Formatter: Auto-formats templates with intelligent indentation |
| 7 | +# - Language Server: Provides IDE support (VS Code, Zed, Neovim, etc.) |
| 8 | +# |
| 9 | +# Website: https://herb-tools.dev |
| 10 | +# Configuration: https://herb-tools.dev/configuration |
| 11 | +# GitHub Repo: https://github.com/marcoroth/herb |
| 12 | +# |
| 13 | + |
| 14 | +version: 0.8.10 |
| 15 | + |
| 16 | +# files: |
| 17 | +# # Additional patterns beyond the defaults (**.html, **.rhtml, **.html.erb, etc.) |
| 18 | +# include: |
| 19 | +# - '**/*.xml.erb' |
| 20 | +# - 'custom/**/*.html' |
| 21 | +# |
| 22 | +# # Patterns to exclude (can exclude defaults too) |
| 23 | +# exclude: |
| 24 | +# - 'public/**/*' |
| 25 | +# - 'tmp/**/*' |
| 26 | + |
| 27 | +linter: |
| 28 | + enabled: true |
| 29 | + |
| 30 | + exclude: |
| 31 | + - '**/*.html' |
| 32 | + - 'vendor/**/*' |
| 33 | + |
| 34 | + # # Exit with error code when diagnostics of this severity or higher are present |
| 35 | + # # Valid values: error (default), warning, info, hint |
| 36 | + # failLevel: warning |
| 37 | + |
| 38 | + # # Additional patterns beyond the defaults for linting |
| 39 | + # include: |
| 40 | + # - '**/*.xml.erb' |
| 41 | + # |
| 42 | + # # Patterns to exclude from linting |
| 43 | + # exclude: |
| 44 | + # - 'app/views/admin/**/*' |
| 45 | + |
| 46 | + rules: |
| 47 | + erb-prefer-image-tag-helper: |
| 48 | + enabled: false |
| 49 | + # erb-no-extra-newline: |
| 50 | + # enabled: false |
| 51 | + # |
| 52 | + # # Rules can have 'include', 'only', and 'exclude' patterns |
| 53 | + # some-rule: |
| 54 | + # # Additional patterns to check (additive, ignored when 'only' is present) |
| 55 | + # include: |
| 56 | + # - 'app/components/**/*' |
| 57 | + # # Don't apply this rule to files matching these patterns |
| 58 | + # exclude: |
| 59 | + # - 'app/views/admin/**/*' |
| 60 | + # |
| 61 | + # another-rule: |
| 62 | + # # Only apply this rule to files matching these patterns (overrides all 'include') |
| 63 | + # only: |
| 64 | + # - 'app/views/**/*' |
| 65 | + # # Exclude still applies even with 'only' |
| 66 | + # exclude: |
| 67 | + # - 'app/views/admin/**/*' |
| 68 | + |
| 69 | +formatter: |
| 70 | + enabled: false |
| 71 | + indentWidth: 2 |
| 72 | + maxLineLength: 80 |
| 73 | + |
| 74 | + # # Additional patterns beyond the defaults for formatting |
| 75 | + # include: |
| 76 | + # - '**/*.xml.erb' |
| 77 | + # |
| 78 | + # # Patterns to exclude from formatting |
| 79 | + # exclude: |
| 80 | + # - 'app/views/admin/**/*' |
| 81 | + |
| 82 | + # # Rewriters modify templates during formatting |
| 83 | + # rewriter: |
| 84 | + # # Pre-format rewriters (modify AST before formatting) |
| 85 | + # pre: |
| 86 | + # - tailwind-class-sorter |
| 87 | + # # Post-format rewriters (modify formatted output string) |
| 88 | + # post: [] |
0 commit comments