A platform for community discussion. Free, open, simple.
FIX: add fix all target to lefthook to support bin/lint --fix (#36644)
Samdd384fedaa42
diff --git a/bin/lint b/bin/lintindex 79f97a72385..551f6019935 100755--- a/bin/lint+++ b/bin/lint@@ -131,8 +131,8 @@ class LefthookLinterendif files == EVERYTHING- # Run fix-staged on all files (no file filtering)- run_lefthook_command("fix-staged", [])+ # Run fix-all on all files (no file filtering)+ run_lefthook_command("fix-all", [])elsif files.empty?puts "No files to fix, exiting."elsediff --git a/lefthook.yml b/lefthook.ymlindex 7ca2fe113f2..0e501733ff9 100644--- a/lefthook.yml+++ b/lefthook.yml@@ -100,6 +100,20 @@ fix-staged:- "Gemfile"run: bundle exec stree write Gemfile {staged_files}+fix-all:+ parallel: false+ commands:+ prettier:+ run: pnpm lint:prettier:fix+ eslint:+ run: pnpm lint:js:fix+ ember-template-lint:+ run: pnpm lint:hbs:fix+ stylelint:+ run: pnpm lint:css:fix+ rubocop:+ run: bundle exec rubocop --force-exclusion -A+lints:parallel: truecommands: