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