Add husky and lint-staged

This commit is contained in:
seunghyunOh
2022-12-10 12:13:48 +09:00
parent 059f15b172
commit 9a3caac75f
12 changed files with 22490 additions and 19575 deletions

28
package.json Normal file
View File

@@ -0,0 +1,28 @@
{
"name": "infisical",
"repository": {
"type": "git",
"url": "git+https://github.com/infisical/infisical.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/infisical/infisical/issues"
},
"homepage": "https://github.com/infisical/infisical#readme",
"scripts": {
"prepare": "husky install"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"devDependencies": {
"eslint": "^8.29.0",
"husky": "^8.0.2",
"prettier": "^2.8.1"
}
}