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

add

parent b41c625f
#!/usr/bin/env sh # #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.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 # # Check Prettier standards
npm run format || # npm run format ||
( # (
echo "\n Prettier Check Failed.\n Run npm run format, add changes and try commit again.\n"; # echo "\n Prettier Check Failed.\n Run npm run format, add changes and try commit again.\n";
false; # false;
) # )
# Check ESLint Standards # # Check ESLint Standards
npm run lint-staged || # npm run lint-staged ||
( # (
echo "\n ESLint Check Failed. \n Make the required changes listed above, add changes and try to commit again.\n" # echo "\n ESLint Check Failed. \n Make the required changes listed above, add changes and try to commit again.\n"
false; # false;
) # )
# If everything passes... Now we can commit # # If everything passes... Now we can commit
echo "Build is completed... I am committing this now. \n" # 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