From 72a3f387f2af09b358c7a33de6099068eb5eba2a Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Wed, 15 Apr 2020 15:57:28 +1000 Subject: [PATCH] Only run ember-template-lint precommit on staged files * instead of running on the whole app folder, which just adds extra overhead --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 7060a976d4..749f080134 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -17,7 +17,7 @@ pre-commit: exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit" run: yarn eslint -f compact {staged_files} ember-template-lint: - run: yarn run ember-template-lint app + run: yarn run ember-template-lint {staged_files} yaml-syntax: glob: "*.{yaml,yml}" # database.yml is an erb file not a yaml file