DEV: Run prettier on staged files before commit using lefthook (#9064)
* DEV: Run prettier on staged files before commit using lefthook * excluded some js files
This commit is contained in:
parent
c62d5b139b
commit
c11e5eb042
|
@ -4,6 +4,10 @@ pre-commit:
|
|||
rubocop:
|
||||
glob: "*.rb"
|
||||
run: bundle exec rubocop {staged_files}
|
||||
prettier:
|
||||
glob: "*.{js,es6}"
|
||||
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
|
||||
run: yarn prettier --list-different {staged_files}
|
||||
eslint:
|
||||
glob: "*.{js,es6}"
|
||||
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
|
||||
|
|
Loading…
Reference in New Issue