1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added husky

This commit is contained in:
Fedor Katurov 2022-01-07 18:39:35 +07:00
parent 558e8f8a4f
commit c172e9176d
2 changed files with 183 additions and 10 deletions

View file

@ -56,7 +56,8 @@
"start": "craco start",
"build": "craco build",
"ts-check": "tsc -p tsconfig.json --noEmit",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prepare": "husky install"
},
"eslintConfig": {
"extends": [
@ -85,6 +86,13 @@
"@types/throttle-debounce": "^2.1.0",
"@types/yup": "^0.29.11",
"craco-alias": "^2.3.1",
"prettier": "^1.18.2"
"lint-staged": "^12.1.6",
"prettier": "^1.18.2",
"husky": "^7.0.4"
},
"lint-staged": {
"./**/*.{js,jsx,ts,tsx}": [
"eslint --fix"
]
}
}