diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000..36af21989 --- /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 3a0dafde7..7c1ee91e9 100644 --- a/package.json +++ b/package.json @@ -70,5 +70,8 @@ ], "coverageDirectory": "../coverage", "testEnvironment": "node" + }, + "lint-staged": { + "**/*": "prettier --write --ignore-unknown" } }