add husky hook for linting staged files
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
2023-08-06 09:11:18 +03:00
parent c60d7d0c30
commit 5e1633ea31
4 changed files with 566 additions and 0 deletions

View File

@@ -68,11 +68,16 @@
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.5",
"cross-env": "^7.0.3",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"mocha": "^10.2.0",
"nodemon": "^3.0.1",
"prettier": "^3.0.0",
"shx": "^0.3.4",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"lint-staged": {
"*.{ts,js,css,md}": "prettier --write"
}
}