test hook
This commit is contained in:
parent
a1018cf51c
commit
6ad8254a2c
1 changed files with 2 additions and 4 deletions
|
|
@ -2,9 +2,7 @@ pre-commit:
|
|||
commands:
|
||||
eslint:
|
||||
glob: 'src/**/*.{js,svelte}'
|
||||
run: npx eslint --cache --fix {staged_files}
|
||||
run: npx eslint --cache --fix {staged_files} && git add .
|
||||
prettier:
|
||||
glob: 'src/**/*.{js,scss,md,svelte}'
|
||||
run: npx prettier --write {staged_files}
|
||||
addChanged:
|
||||
run: git add .
|
||||
run: npx prettier --write {staged_files} && git add .
|
||||
|
|
|
|||
Loading…
Reference in a new issue