feat: husky + commitlint

This commit is contained in:
liyasthomas
2021-09-10 12:02:18 +05:30
parent b28f82a881
commit 80c7decb81
2 changed files with 24 additions and 29 deletions

View File

@@ -5,9 +5,19 @@
"author": "Hoppscotch (support@hoppscotch.io)",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{ts,js,vue}": "eslint",
"*.{css,scss,vue}": "stylelint"
},
"workspaces": [
"./packages/*"
]
],
"dependencies": {
"husky": "^7.0.2",
"lint-staged": "^11.1.2"
}
}