feat: add git hook checking
This commit is contained in:
parent
07367c4897
commit
920daee26e
6
.env
Normal file
6
.env
Normal 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
1
commitlint.config.mjs
Normal file
@ -0,0 +1 @@
|
|||||||
|
export default { extends: ['@commitlint/config-conventional'] };
|
||||||
14
lefthook.yml
Normal file
14
lefthook.yml
Normal 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
1410
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
13
package.json
Normal file
13
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user