feat: project hooks and linting + WARN commit message linting not done
This commit is contained in:
1 parent
11fd4cb826
commit
1cdccaeb29
7 files changed
+771
-6
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo -e "\e[35m➤ [FORMAT]\e[0m Checking code format\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
deno check .
|
||||
if [[ $? != 0 ]]; then
|
||||
echo -e "\e[31m➤ [FORMAT]\e[0m Wrong format code\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
exit -1
|
||||
fi
|
||||
echo -e "\e[32m➤ [COMMIT]\e[0m Format ok\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
|
||||
echo -e "\e[35m➤ [LINT]\e[0m Linting code\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
deno run -A npm:lint-staged
|
||||
if [[ $? != 0 ]]; then
|
||||
echo -e "\e[31m➤ [LINT]\e[0m Wrong lint code\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
exit -1
|
||||
fi
|
||||
echo -e "\e[32m➤ [LINT]\e[0m Lint ok\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
|
||||
Reference in new issue
Block a user