-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.erb_lint.yml
37 lines (37 loc) · 1.24 KB
/
.erb_lint.yml
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
---
glob: "**/*.{html,text,js}{+*,}.erb"
exclude:
- '**/vendor/**/*'
- '**/node_modules/**/*'
EnableDefaultLinters: true
linters:
ErbSafety:
enabled: true
better_html_config: .better-html.yml
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Layout/InitialIndentation:
Enabled: false # This rule removes the "<%" e "<%=" from the code, if enabled.
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false # This rule removes the "<%" e "<%=" from the code, if enabled.
Layout/LeadingEmptyLines:
Enabled: false
# Enabling this adds a frozen string literal magic comment to every block.
Style/FrozenStringLiteralComment:
Enabled: false
# erb_lint reports errors with this cop.
Style/MultilineTernaryOperator:
Enabled: false
# False flags for view files. ViewComponents should never see this, though, as they should never need to assign in a view.
Lint/UselessAssignment:
Exclude:
- "app/views/**/*"
# Empty blocks have utility in views, e.g. for resetting content_for and
# rendering slots without args.
Lint/EmptyBlock:
Enabled: false