Skip to content

Commit 26bfcaa

Browse files
authored
NEW @W-18457570@ Husky pre-commit lint (#1890)
1 parent 49c2751 commit 26bfcaa

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.husky/pre-commit

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

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
@@ -35,6 +35,7 @@
3535
"@types/tmp": "^0.2.6",
3636
"eslint": "^9.32.0",
3737
"eslint-plugin-sf-plugin": "^1.20.30",
38+
"husky": "^9.1.7",
3839
"jest": "^30.0.5",
3940
"jest-junit": "^16.0.0",
4041
"oclif": "^4.22.6",
@@ -131,6 +132,7 @@
131132
"lint": "eslint ./src --max-warnings 0",
132133
"version": "oclif readme && git add README.md",
133134
"test": "jest --coverage",
134-
"showcoverage": "open ./coverage/lcov-report/index.html"
135+
"showcoverage": "open ./coverage/lcov-report/index.html",
136+
"prepare": "husky"
135137
}
136138
}

0 commit comments

Comments
 (0)