diff --git a/.gitignore b/.gitignore index be93f671..cbf5f69f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ node_modules dist .DS_Store -.idea -.husky \ No newline at end of file +.idea \ No newline at end of file diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 00000000..31354ec1 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..36af2198 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged diff --git a/package.json b/package.json index 8bfc8115..13c48ec9 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,5 @@ { "name": "@moai/root", - "scripts": { - "prepare": "husky install && husky add .husky/pre-commit 'npx lint-staged'" - }, "lint-staged": { "*.{ts,tsx,js,css,json}": "prettier --write" },