diff --git a/.husky/pre-commit.sh b/.husky/pre-commit.sh new file mode 100644 index 0000000..3723623 --- /dev/null +++ b/.husky/pre-commit.sh @@ -0,0 +1 @@ +yarn lint-staged diff --git a/package.json b/package.json index 075a2a5..97c8ed3 100644 --- a/package.json +++ b/package.json @@ -115,11 +115,6 @@ "typescript": "^4.1.3", "webpack": "^4.44.2" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "lint-staged": { "*.{ts,tsx,js,jsx}": [ "tsc -p tsconfig.json --noEmit", @@ -137,4 +132,4 @@ "prettier --write" ] } -} +} \ No newline at end of file