diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..d24fdfc --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npx lint-staged diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..610c2a5 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm test diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index def558a..0000000 --- a/.huskyrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - hooks: { - 'pre-commit': 'lint-staged && npm run type-check', - }, -} diff --git a/.lintstagedrc.js b/.lintstagedrc.js index f906549..8e74146 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,4 @@ -module.exports = { +export default { '**/*.{ts,tsx,js,jsx}': ['prettier --write', 'eslint --fix'], '**/*.{json}': ['prettier --write'], } diff --git a/.npmignore b/.npmignore index 0c2d8b0..4e40010 100644 --- a/.npmignore +++ b/.npmignore @@ -5,7 +5,6 @@ .editorconfig .eslintignore .eslintrc.cjs -.huskyrc.js .lintstagedrc.js .prettierignore .prettierrc.json