Only run ember-template-lint precommit on staged files

* instead of running on the whole app folder, which just adds extra
  overhead
This commit is contained in:
Martin Brennan 2020-04-15 15:57:28 +10:00
parent 4a2c4232c5
commit 72a3f387f2
1 changed files with 1 additions and 1 deletions

View File

@ -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