Skip to content

Commit 50607e4

Browse files
authored
move precommit check to npm script (#4220)
1 parent 0ce8cc8 commit 50607e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lint-staged
1+
npm run precommit

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"testonly:watch": "npm run testonly -- --watch",
4343
"prettier": "prettier --cache --cache-strategy metadata --write --list-different .",
4444
"prettier:check": "prettier --cache --cache-strategy metadata --check .",
45+
"precommit": "lint-staged",
4546
"check:spelling": "cspell --cache --no-progress \"**/*\"",
4647
"check:integrations": "mocha --full-trace resources/integration-test.ts",
4748
"serve": "docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs",

0 commit comments

Comments
 (0)