-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy path.herb.yml
More file actions
83 lines (72 loc) · 2.18 KB
/
Copy path.herb.yml
File metadata and controls
83 lines (72 loc) · 2.18 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
# 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.10.1
# # Framework and template engine configuration
#
# # Options: ruby | actionview | hanami | sinatra (default: ruby)
# framework: ruby
#
# # Options: erubi | erb | herb (default: erubi)
# template_engine: erubi
# 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/**/*'
# engine:
# validators:
# security: true # default: true
# nesting: true # default: true
# accessibility: true # default: true
linter:
enabled: true
# # 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-no-instance-variables-in-partials:
enabled: false
erb-no-interpolated-class-names:
enabled: false
html-anchor-require-href:
enabled: false
formatter:
enabled: true
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: []