From 0916942bebed9c620bac47758397d3f941ba9faa Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 1 Mar 2024 05:31:15 -0500 Subject: [PATCH] Update front-end linting dependencies After the `v4.0.0` release of [@thoughtbot/stylelint-config][], the errors mentioned in [this issue][] no longer appear. This alleviates us from having to pin these dependencies. [@thoughtbot/stylelint-config]: https://github.com/thoughtbot/stylelint-config/releases/tag/v4.0.0 [this issue]: https://github.com/thoughtbot/stylelint-config/issues/46 --- lib/generators/suspenders/lint_generator.rb | 2 +- test/generators/suspenders/lint_generator_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/suspenders/lint_generator.rb b/lib/generators/suspenders/lint_generator.rb index 60eae5964..5816f0619 100644 --- a/lib/generators/suspenders/lint_generator.rb +++ b/lib/generators/suspenders/lint_generator.rb @@ -7,7 +7,7 @@ class LintGenerator < Rails::Generators::Base desc "Creates a holistic linting solution that covers JavaScript, CSS, Ruby and ERB." def install_dependencies - run "yarn add stylelint@^15.10.1 eslint @thoughtbot/stylelint-config@3.0.0 @thoughtbot/eslint-config npm-run-all prettier --dev" + run "yarn add stylelint eslint @thoughtbot/stylelint-config @thoughtbot/eslint-config npm-run-all prettier --dev" end def install_gems diff --git a/test/generators/suspenders/lint_generator_test.rb b/test/generators/suspenders/lint_generator_test.rb index f45811782..bcf123e2e 100644 --- a/test/generators/suspenders/lint_generator_test.rb +++ b/test/generators/suspenders/lint_generator_test.rb @@ -15,7 +15,7 @@ class LintGeneratorTest < Rails::Generators::TestCase capture(:stderr) do output = run_generator - assert_match(/yarn add stylelint@\^15\.10\.1 eslint @thoughtbot\/stylelint-config@3\.0\.0 @thoughtbot\/eslint-config npm-run-all prettier --dev/, output) + assert_match(/yarn add stylelint eslint @thoughtbot\/stylelint-config @thoughtbot\/eslint-config npm-run-all prettier --dev/, output) end end