Skip to content

Commit

Permalink
Add erb-lint and config
Browse files Browse the repository at this point in the history
Closes #938
  • Loading branch information
maxkadel committed Aug 12, 2024
1 parent 06a3958 commit fc00ed0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
EnableDefaultLinters: true
exclude:
- '**/vendor/**/*'
- '**/node_modules/**/*'
inherit_gem:
erblint-github:
- config/accessibility.yml
# linters:
# Rubocop:
# enabled: true
# rubocop_config:
# inherit_from:
# - .rubocop.yml
3 changes: 3 additions & 0 deletions .erb-linters/erblint-github.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true # rubocop:disable Naming/FileName

require "erblint-github/linters"
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ gem "honeybadger"
group :development, :test do
gem "bixby"
gem "byebug", platforms: %i[mri mingw x64_mingw]
gem "erb_lint", require: false
gem "erblint-github"
gem "pry"
gem "pry-byebug"
end
Expand Down
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ GEM
base64 (0.2.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.0)
better_html (2.1.1)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
erubi (~> 1.4)
parser (>= 2.4)
smart_properties
bindex (0.8.1)
bixby (5.0.2)
rubocop (= 1.28.2)
Expand Down Expand Up @@ -132,6 +139,14 @@ GEM
docile (1.4.0)
dry-cli (1.0.0)
ed25519 (1.3.0)
erb_lint (0.6.0)
activesupport
better_html (>= 2.0.1)
parser (>= 2.7.1.4)
rainbow
rubocop (>= 1)
smart_properties
erblint-github (1.0.1)
erubi (1.13.0)
factory_bot (6.4.2)
activesupport (>= 5.0.0)
Expand Down Expand Up @@ -339,6 +354,7 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
smart_properties (1.17.0)
sshkit (1.21.6)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
Expand Down Expand Up @@ -391,6 +407,8 @@ DEPENDENCIES
capybara-screenshot
devise
ed25519
erb_lint
erblint-github
factory_bot_rails
faker
high_voltage
Expand Down

0 comments on commit fc00ed0

Please sign in to comment.