-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] Added post-merge hook and updated scripts (#38)
* Enhance the usability of users * Enhance the change format:fix * Added post-commit hook * change the lintstagedrc value * change the lintstagedrc value to check * Create codeql.yml * Create eslint.yml * Delete .github/workflows/eslint.yml * Delete .github/workflows/codeql.yml * Added clean install of node modules * remove unnecessary type check * Remove unnecessary type check from package.json * Added fromat check * Remove frormat:fix
- Loading branch information
1 parent
184a871
commit 31de127
Showing
4 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
git diff HEAD^ HEAD --exit-code -- ./package.json || npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"*.{ts,tsx}": ["npm run lint", "npm run format"] | ||
"*.{ts,tsx}": ["npm run lint:check", "npm run format:check"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters