feat: add prettier pre-commit hook

This commit is contained in:
Mikhail Zolotukhin 2021-09-04 20:22:18 +03:00
parent 3e7f3d39b5
commit 8a439bb41b
2 changed files with 5 additions and 0 deletions

View File

@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"
npm test
npx lint-staged

View File

@ -16,6 +16,7 @@
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"mocha": "^6.0.0",
"prettier": "2.3.2",
"typedoc": "^0.21.6",
@ -53,6 +54,9 @@
},
"homepage": "https://github.com/gikari/bismuth#readme",
"prettier": {},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"eslintConfig": {
"root": true,
"ignorePatterns": [