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.9.0
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+ # engine:
28+ # validators:
29+ # security: true # default: true
30+ # nesting: true # default: true
31+ # accessibility: true # default: true
32+
33+ linter :
34+ enabled : true
35+
36+ # # Exit with error code when diagnostics of this severity or higher are present
37+ # # Valid values: error (default), warning, info, hint
38+ # failLevel: warning
39+
40+ # # Additional patterns beyond the defaults for linting
41+ # include:
42+ # - '**/*.xml.erb'
43+ #
44+ # # Patterns to exclude from linting
45+ # exclude:
46+ # - 'app/views/admin/**/*'
47+
48+ rules :
49+ erb-no-statement-in-script :
50+ exclude :
51+ - ' **/layouts/application.html.erb'
52+ html-allowed-script-type :
53+ exclude :
54+ - ' **/components/show/head_metadata_component.html.erb'
55+ erb-no-unsafe-raw :
56+ exclude :
57+ - ' **/components/flash_message_component.html.erb'
58+
59+ # erb-no-extra-newline:
60+ # enabled: false
61+ #
62+ # # Rules can have 'include', 'only', and 'exclude' patterns
63+ # some-rule:
64+ # # Additional patterns to check (additive, ignored when 'only' is present)
65+ # include:
66+ # - 'app/components/**/*'
67+ # # Don't apply this rule to files matching these patterns
68+ # exclude:
69+ # - 'app/views/admin/**/*'
70+ #
71+ # another-rule:
72+ # # Only apply this rule to files matching these patterns (overrides all 'include')
73+ # only:
74+ # - 'app/views/**/*'
75+ # # Exclude still applies even with 'only'
76+ # exclude:
77+ # - 'app/views/admin/**/*'
78+
79+ formatter :
80+ enabled : false
81+ indentWidth : 2
82+ maxLineLength : 80
83+
84+ # # Additional patterns beyond the defaults for formatting
85+ # include:
86+ # - '**/*.xml.erb'
87+ #
88+ # # Patterns to exclude from formatting
89+ # exclude:
90+ # - 'app/views/admin/**/*'
91+
92+ # # Rewriters modify templates during formatting
93+ # rewriter:
94+ # # Pre-format rewriters (modify AST before formatting)
95+ # pre:
96+ # - tailwind-class-sorter
97+ # # Post-format rewriters (modify formatted output string)
98+ # post: []
0 commit comments