mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
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"
|
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
|
||||||
run: yarn eslint -f compact {staged_files}
|
run: yarn eslint -f compact {staged_files}
|
||||||
ember-template-lint:
|
ember-template-lint:
|
||||||
run: yarn run ember-template-lint app
|
run: yarn run ember-template-lint {staged_files}
|
||||||
yaml-syntax:
|
yaml-syntax:
|
||||||
glob: "*.{yaml,yml}"
|
glob: "*.{yaml,yml}"
|
||||||
# database.yml is an erb file not a yaml file
|
# database.yml is an erb file not a yaml file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user