Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SpeakEzy_Frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thisara Kavinda
SpeakEzy_Frontend
Commits
7fa5698a
Commit
7fa5698a
authored
May 17, 2024
by
Shehan Liyanage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
b41c625f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
.husky/pre-commit
.husky/pre-commit
+17
-17
No files found.
.husky/pre-commit
View file @
7fa5698a
#!/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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment