Skip to content

Commit 2142add

Browse files
committed
Added pre-commit checks
1 parent e39a723 commit 2142add

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm run lint
2+
npm test

package-lock.json

Lines changed: 17 additions & 0 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
@@ -36,7 +36,8 @@
3636
"test": "npm run test-unit && npm run test-e2e",
3737
"build": "rspack --mode production",
3838
"stats": "rspack build --analyze",
39-
"prepublishOnly": "npm run test && npm run build"
39+
"prepublishOnly": "npm run test && npm run build",
40+
"prepare": "husky"
4041
},
4142
"contributors": [
4243
"Emmanuel Pelletier",
@@ -67,6 +68,7 @@
6768
"clean-deep": "^3.4.0",
6869
"cross-env": "^5.2.0",
6970
"css-loader": "^0.28.11",
71+
"husky": "^9.1.7",
7072
"jest": "^28.1.3",
7173
"jest-environment-jsdom": "^28.1.0",
7274
"micromodal": "^0.4.10",

0 commit comments

Comments
 (0)