-
Notifications
You must be signed in to change notification settings - Fork 0
/
.erb-lint.yml
40 lines (39 loc) · 946 Bytes
/
.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
38
39
40
---
# https://github.com/Shopify/erb-lint#configuration
#
EnableDefaultLinters: true
exclude:
- 'node_modules/**/*'
- 'lib/generators/**/*'
- 'vendor/**/*'
linters:
NoJavascriptTagHelper:
enabled: false
SpaceAroundErbTag:
enabled: false
PartialInstanceVariable:
enabled: true
ErbSafety:
enabled: true
better_html_config: .better-html.yml
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
# There are some cops not suitable for ERB files,
# disable or tweak as needed below
Layout/InitialIndentation:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/MultilineIfModifier:
Enabled: false
Lint/UselessAssignment:
Enabled: false