Add lint staged

This commit is contained in:
2022-07-20 19:39:58 +01:00
parent dddedefd00
commit d5b3814514
4 changed files with 1048 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
"generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types",
"lint": "npm run lint:check",
"lint:fix": "eslint --fix .",
"lint:check": "eslint ."
"lint:check": "eslint .",
"prepare": "husky install"
},
"dependencies": {
"dotenv": "^8.2.0",
@@ -27,8 +28,13 @@
"@typescript-eslint/parser": "^5.30.7",
"cross-env": "^7.0.3",
"eslint": "^8.20.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"nodemon": "^2.0.6",
"ts-node": "^9.1.1",
"typescript": "^4.7.4"
},
"lint-staged": {
"*.ts": "eslint --cache --fix"
}
}