diff --git a/.gitignore b/.gitignore index e51b9a0..c406f1b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ server/certificates/* # misc .DS_Store *.pem +.idea # debug npm-debug.log* @@ -41,4 +42,4 @@ server/config/config.json .npmrc db-*.json -scripts/validate-signature.js \ No newline at end of file +scripts/validate-signature.js diff --git a/package.json b/package.json index 8266207..71a6b56 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,19 @@ "ts-node": "^10.9.2", "typescript": "^5.3.0" }, + "lint-staged": { + "linters": { + "*.js": [ + "prettier --write --config .prettierrc", + "eslint --fix", + "git add" + ], + "*.json": [ + "prettier --write --config .prettierrc", + "git add" + ] + } + }, "engines": { "node": "20" }