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:
parent
4a2c4232c5
commit
72a3f387f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue