-
Notifications
You must be signed in to change notification settings - Fork 11
/
.erb-lint.yml
54 lines (54 loc) · 1.49 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
EnableDefaultLinters: true
exclude:
- 'app/components/content/hero_component.html.erb'
- 'app/views/sections/_head.html.erb'
- 'node_modules/dfe-autocomplete/app/components/dfe/autocomplete/view.html.erb'
- 'node_modules/dfe-autocomplete/spec/dummy/app/views/layouts/mailer.html.erb'
linters:
ErbSafety:
enabled: true
better_html_config: .better-html.yml
HardCodedString:
enabled: false
ClosingErbTagIndent:
enabled: false
Naming/FileName:
enabled: false
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/FirstArgumentIndentation:
Enabled: false
Layout/ArgumentAlignment:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/WordArray:
Enabled: false
Lint/UselessAssignment: # This one gives false-positives
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Layout/LeadingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/MultilineMethodCallBraceLayout:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideParens:
Enabled: false
Naming/FileName:
Enabled: false