feat: add git hook checking

This commit is contained in:
Sergey Krylov 2025-09-05 05:52:57 +03:00
parent 07367c4897
commit 920daee26e
5 changed files with 1444 additions and 0 deletions

6
.env Normal file
View File

@ -0,0 +1,6 @@
POSTGRES_USER='root'
POSTGRES_PASSWORD='123456'
POSTGRES_HOST='localhost'
POSTGRES_PORT='5433'
POSTGRES_DATABASE='investments'
POSTGRES_URI="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABASE}"

1
commitlint.config.mjs Normal file
View File

@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };

14
lefthook.yml Normal file
View File

@ -0,0 +1,14 @@
pre-commit:
parallel: true
commands:
lint-frontend:
root: "frontend"
run: "npm run lint"
lint-backend:
root: "server"
run: "npm run lint"
commit-msg:
commands:
lint-commit-message:
run: "npx commitlint --edit {1}"

1410
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

13
package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "Investments Control",
"version": "0.0.0",
"author": "Krylov <ksv741@mail.ru> Sergey",
"private": true,
"description": "",
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "19.8.1",
"@commitlint/config-conventional": "19.8.1",
"lefthook": "1.12.3"
}
}