From 5f230dce1afb5e2c0ba8dde4ccd2a786eaf96b34 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Mon, 9 Dec 2024 14:04:13 +0000 Subject: [PATCH] Fix deprecations in erb_lint - You now call erb_lint instead of erblint - Config file is now .erb_lint.yaml rather than .erb-lint.yaml --- .erb-lint.yml => .erb_lint.yml | 0 .github/workflows/ci.yml | 2 +- lib/tasks/lint.rake | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename .erb-lint.yml => .erb_lint.yml (100%) diff --git a/.erb-lint.yml b/.erb_lint.yml similarity index 100% rename from .erb-lint.yml rename to .erb_lint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a41ce22f8..504911240 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: bundler-cache: true - name: Run Erblint - run: bundle exec erblint --lint-all + run: bundle exec erb_lint --lint-all lint-ruby: name: Lint Ruby diff --git a/lib/tasks/lint.rake b/lib/tasks/lint.rake index a4fcb054c..ee79e0719 100644 --- a/lib/tasks/lint.rake +++ b/lib/tasks/lint.rake @@ -2,9 +2,9 @@ desc "Run all linters" task lint: :environment do sh "bundle exec rubocop" if Rails.env.development? - sh "bundle exec erblint --lint-all --autocorrect" + sh "bundle exec erb_lint --lint-all --autocorrect" else - sh "bundle exec erblint --lint-all" + sh "bundle exec erb_lint --lint-all" end sh "yarn lint" end