Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# npm test
npx lint-staged

if [ "$(uname)" == "Darwin" ]; then
npm run test
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
npm run test
elif [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
npm run testWin
fi
6 changes: 6 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.js": [
"prettier --write",
"eslint --fix"
]
}
26 changes: 0 additions & 26 deletions hooks/pre-commit

This file was deleted.

Loading