Add changelog and newlines
This commit is contained in:
parent
6f45cbd197
commit
b3b7d12496
3 changed files with 7 additions and 2 deletions
5
changelogs/unreleased/pre-commit-prettier.yml
Normal file
5
changelogs/unreleased/pre-commit-prettier.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Adds scripts to add code formatters in pre-commit via prettier
|
||||
merge_request:
|
||||
author:
|
||||
type: added
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
touch ./.git/hooks/pre-commit
|
||||
ln -s -f ./pre-commit .git/hooks/pre-commit
|
||||
ln -s -f ./pre-commit .git/hooks/pre-commit
|
||||
|
|
|
@ -8,4 +8,4 @@ echo "$jsfiles" | xargs ./node_modules/.bin/prettier --write
|
|||
# Add back the modified/prettified files to staging
|
||||
echo "$jsfiles" | xargs git add
|
||||
|
||||
exit 0
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue