mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-31 02:30:13 +02:00
add prettier configs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# RUN PRETTIER
|
||||
filesToPrettify=$(git diff --staged --name-only | grep ".*\.\(js\|json\|css\|md\)")
|
||||
echo "$fileToPrettify" | xargs ./node_modules/.bin/prettier --single-quote --use-tabs --write
|
||||
echo "$fileToPrettify" | xargs ./node_modules/.bin/prettier --config ./prettierrc --write
|
||||
echo "$fileToPrettify" | xargs git add
|
||||
|
||||
# Fetch .js or .json filed from staged files
|
||||
|
Reference in New Issue
Block a user