-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.erb_lint.yml
More file actions
39 lines (39 loc) · 1.2 KB
/
.erb_lint.yml
File metadata and controls
39 lines (39 loc) · 1.2 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
---
glob: "{app/views,config}/**/*.erb"
linters:
# We don't want partials to use ivars and instead have variables passed
# in as locals to avoid mystery guests and make testing easier
PartialInstanceVariable:
enabled: true
# Setting the autocomplete attribute (e.g. `off`) is not required when there's
# no relevant input purpose https://www.w3.org/TR/WCAG21/#input-purposes
RequireInputAutocomplete:
enabled: false
# We use a CSP and want any script tags to have a nonce
RequireScriptNonce:
enabled: true
# If we have inline JavaScript we should only serve it to browsers that
# support module
AllowedScriptType:
enabled: true
allowed_types:
- module
# Use our regular Rubocop configuration but
# disable specific rules that do not apply to ERB files
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
AllCops:
DisabledByDefault: true
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Layout/FirstHashElementIndentation:
Enabled: false