Skip to content

Commit

Permalink
Update erb-linter (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
coorasse authored Sep 5, 2024
1 parent 4d003c8 commit f3d0528
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions templates/.erb-lint.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
---
glob: "**/app/views/**/*.{html,text,js}{+*,}.erb"
EnableDefaultLinters: true
exclude:
- '**/rails_admin/*'
- "vendor/**/*"
linters:
SpaceInHtmlTag:
enabled: false
NoJavascriptTagHelper:
enabled: true
correction_style: 'plain'
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
# Each ruby statement (between ERB tags <% ... %>) is parsed and analyzed independently of each other,
# so contextual rules are manually disabled
Layout/InitialIndentation:
Enabled: false
Layout/LineLength:
Enabled: true
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Layout/BlockAlignment:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Expand Down

0 comments on commit f3d0528

Please sign in to comment.