diff --git a/.husky/pre-commit b/.husky/pre-commit index c27d8893a9..f27575a8ed 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -lint-staged +npm run precommit diff --git a/package.json b/package.json index f0de106263..7327e21c17 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "testonly:watch": "npm run testonly -- --watch", "prettier": "prettier --cache --cache-strategy metadata --write --list-different .", "prettier:check": "prettier --cache --cache-strategy metadata --check .", + "precommit": "lint-staged", "check:spelling": "cspell --cache --no-progress \"**/*\"", "check:integrations": "mocha --full-trace resources/integration-test.ts", "serve": "docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs",