diff --git a/.erb-lint.yml b/.erb-lint.yml new file mode 100644 index 00000000..486c3805 --- /dev/null +++ b/.erb-lint.yml @@ -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 diff --git a/.erb-linters/erblint-github.rb b/.erb-linters/erblint-github.rb new file mode 100644 index 00000000..f2011d60 --- /dev/null +++ b/.erb-linters/erblint-github.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true # rubocop:disable Naming/FileName + +require "erblint-github/linters" diff --git a/Gemfile b/Gemfile index cff7b978..0913a10a 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 8452fd5c..6bd1006c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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) @@ -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) @@ -391,6 +407,8 @@ DEPENDENCIES capybara-screenshot devise ed25519 + erb_lint + erblint-github factory_bot_rails faker high_voltage