Skip to content

Commit 20b3dad

Browse files
committed
chore(lint): hook up husky for linting
1 parent f06ec40 commit 20b3dad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@types/webpack-dev-server": "^3.1.1",
4949
"commitizen": "^3.0.2",
5050
"cz-conventional-changelog": "^2.1.0",
51+
"husky": "^1.1.1",
5152
"lint-staged": "^7.2.0",
5253
"rimraf": "^2.6.2",
5354
"semantic-release": "^15.9.17",
@@ -56,6 +57,11 @@
5657
},
5758
"builders": "./builders.json",
5859
"schematics": "./collection.json",
60+
"husky": {
61+
"hooks": {
62+
"pre-commit": "npm run lint"
63+
}
64+
},
5965
"lint-staged": {
6066
"linters": {
6167
"*.{ts,tsx}": "npm run lint"

0 commit comments

Comments
 (0)