From 64adf3cba3eda66bf4710bc03fac9b8db182adff Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 27 Jun 2022 20:01:13 +0200 Subject: [PATCH] DEV: Don't template-lint all files in lefthook (#17255) Just templates is a-ok, thx :P --- lefthook.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lefthook.yml b/lefthook.yml index 530c53bf06..c11d115f4a 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -21,6 +21,8 @@ pre-commit: include: "app/assets/javascripts|plugins/.+?/assets/javascripts" run: yarn eslint -f compact --quiet {staged_files} ember-template-lint: + glob: "*.hbs" + include: "app/assets/javascripts|plugins/.+?/assets/javascripts" run: yarn run ember-template-lint {staged_files} yaml-syntax: glob: "*.{yaml,yml}"