Skip to content

Commit 1fbbbe9

Browse files
authored
Merge pull request #113 from microsoft/users/ryanlynch/add-precommit-hooks
Adding pre-commit tests.
2 parents 209b736 + c3c83d6 commit 1fbbbe9

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

package-lock.json

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"lint:docs": "markdownlint **/*.md",
4444
"update:eslint-docs": "eslint-doc-generator",
4545
"fix:md": "npm run lint:docs -- --fix",
46-
"test:new": "jest"
46+
"test:new": "jest",
47+
"prepare": "husky"
4748
},
4849
"dependencies": {
4950
"eslint-plugin-header": "^3.1.1",
@@ -64,6 +65,7 @@
6465
"eslint-doc-generator": "^1.7.1",
6566
"eslint-plugin-eslint-plugin": "^5.0.8",
6667
"eslint-plugin-node": "^11.1.0",
68+
"husky": "^9.1.6",
6769
"jest": "^29.7.0",
6870
"markdownlint": "^0.28.1",
6971
"markdownlint-cli": "^0.33.0",

0 commit comments

Comments
 (0)