-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
.erb-lint.yml
103 lines (102 loc) · 2.55 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
glob: "**/app/**/*.{html,turbo_stream,js}{+*,}.erb"
exclude:
- '*vendor/*'
- '*app/views/svg/*'
linters:
AllowedScriptType:
enabled: true
ClosingErbTagIndent:
enabled: true
DeprecatedClasses: # See https://github.com/Shopify/erb-lint#deprecatedclasses
enabled: true
ErbSafety: # Need to fix the remaining issues before this can be enabled
enabled: false
better_html_config: .better-html.yml
ExtraNewline:
enabled: true
FinalNewline:
enabled: true
HardCodedString:
enabled: false
NoJavascriptTagHelper:
enabled: true
ParserErrors:
enabled: true
RightTrim: # Disable closing tag trim
enabled: false
RequireInputAutocomplete:
enabled: false
RubocopText:
enabled: true
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Layout/LineLength: # This should be enabled eventually
Enabled: false
Lint/UselessAssignment:
Enabled: false
Rails/OutputSafety:
Enabled: false
Rails/Presence:
Enabled: false
Layout/LeadingEmptyLines:
Enabled: false
Style/RedundantCondition:
Enabled: false
Layout/HashAlignment:
Enabled: false
Rails/LinkToBlank:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Layout/ArgumentAlignment:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Style/RedundantParentheses:
Enabled: false
Lint/FloatComparison:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Layout/EndAlignment:
Enabled: false
Rails/DurationArithmetic:
Enabled: false
Style/HashConversion:
Enabled: false
Layout/ElseAlignment:
Enabled: false
Layout/IndentationWidth:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/IfWithBooleanLiteralBranches:
Enabled: false
SelfClosingTag:
enabled: false
SpaceAroundErbTag:
enabled: true
SpaceInHtmlTag:
enabled: true
SpaceIndentation:
enabled: true
TrailingWhitespace:
enabled: true