-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy path.erb_lint.yml
More file actions
79 lines (76 loc) · 2.4 KB
/
.erb_lint.yml
File metadata and controls
79 lines (76 loc) · 2.4 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
EnableDefaultLinters: true
exclude:
- app/views/grants/_activate_form.html.erb
- app/views/ach_transfers/_form.html.erb # erb-lint _really_ doesn't like Alpine
- app/views/wires/new.html.erb # erb-lint _really_ doesn't like Alpine
- app/views/increase_checks/new.html.erb # erb-lint _really_ doesn't like Alpine
- app/views/events/sub_organizations.html.erb # erb-lint _really_ doesn't like Alpine
- app/views/events/scoped_tags/_scoped_tag_option.html.erb # erb-lint _really_ doesn't like Alpine
- app/views/doorkeeper/authorizations/new.html.erb
linters:
ErbSafety:
enabled: true
exclude:
- 'app/views/kaminari/**'
- 'app/views/admin/transaction.html.erb'
RequireInputAutocomplete:
enabled: false
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
# |
# v Rules that tend to be broken/flaky inside views (e.g. Style/FrozenStringLiteralComment)
Layout/InitialIndentation:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Lint/UselessAssignment:
Enabled: false
# ^
Style/MultilineIfModifier:
Enabled: false
Layout/ArgumentAlignment:
Enabled: false
Naming/VariableNumber:
Enabled: false
Style/NegatedUnless:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/NestedTernaryOperator:
Enabled: false
Style/StringConcatenation:
Enabled: false
Rails/LinkToBlank:
Enabled: false
Rails/OutputSafety:
Enabled: false
Rails/Presence:
Enabled: false
Rails/Present:
Enabled: false
DeprecatedClasses:
enabled: true
rule_set:
- deprecated: ['circle']
suggestion: 'Use rounded-full instead'
- deprecated: ['flex-column']
suggestion: 'Use flex-col instead'
- deprecated: ['mono']
suggestion: 'Use font-mono instead'
- deprecated: ['rounded-top', 'rounded-bottom']
suggestion: 'Use rounded-t/rounded-b instead'
- deprecated: ['strikethrough']
suggestion: 'Use line-through instead'
- deprecated: ['sans']
suggestion: 'Use font-sans instead'