Mp 2837 pre commit hook (#549)

* MP-2837: added husys and lint-staged

* MP-2837: enabled lint-staged

* MP-2837: setup .prettierignore

* MP-2837: setup .prettierignore
This commit is contained in:
Linkie Link 2023-10-17 09:03:15 +02:00 committed by GitHub
parent 5392a4717c
commit 19fb876668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9074 additions and 6908 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

View File

@ -1,3 +1,4 @@
src/utils/charting_library
src/utils/datafeeds
src/types/generated
src/types/generated
.husky

View File

@ -12,7 +12,14 @@
"prettier-check": "prettier --ignore-path .gitignore --check ./src/",
"start": "next start",
"validate-env": "node ./validate-env",
"install-charting-library": "dotenv -e .env.local node install_charting_library.js"
"install-charting-library": "dotenv -e .env.local node install_charting_library.js",
"prepare": "husky install"
},
"lint-staged": {
"*.ts*": [
"eslint ./src/ ./__tests__/ --fix",
"prettier --write ./src/ ./__tests__/"
]
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.31.1",
@ -63,9 +70,11 @@
"eslint": "^8.51.0",
"eslint-config-next": "^13.5.4",
"eslint-plugin-import": "^2.28.1",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.0.1",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.5",
"shelljs": "^0.8.5",

15964
yarn.lock

File diff suppressed because it is too large Load Diff