Commit 7fa5698a authored by Shehan Liyanage's avatar Shehan Liyanage

add

parent b41c625f
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# #!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"
echo "\n Checking format, lint and types in your project before committing"
# echo "\n Checking format, lint and types in your project before committing"
# Check Prettier standards
npm run format ||
(
echo "\n Prettier Check Failed.\n Run npm run format, add changes and try commit again.\n";
false;
)
# # Check Prettier standards
# npm run format ||
# (
# echo "\n Prettier Check Failed.\n Run npm run format, add changes and try commit again.\n";
# false;
# )
# Check ESLint Standards
npm run lint-staged ||
(
echo "\n ESLint Check Failed. \n Make the required changes listed above, add changes and try to commit again.\n"
false;
)
# # Check ESLint Standards
# npm run lint-staged ||
# (
# echo "\n ESLint Check Failed. \n Make the required changes listed above, add changes and try to commit again.\n"
# false;
# )
# If everything passes... Now we can commit
echo "Build is completed... I am committing this now. \n"
# # If everything passes... Now we can commit
# echo "Build is completed... I am committing this now. \n"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment