0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00

chore(ci): migrate husky from v4->v7 (#9633)

* chore(ci): migrate husky from v4->v7

* add new line
This commit is contained in:
Rick Marron 2022-05-03 19:36:58 -07:00 committed by GitHub
parent 9d768f63f6
commit bccd4aeca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

4
.husky/pre-commit Executable file
View File

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

View File

@ -56,7 +56,8 @@
"arm64:services:stop": "docker-compose -f docker-compose.arm64.yml down",
"arm64:services:clean": "docker-compose -f docker-compose.arm64.yml rm -v zookeeper kafka clickhouse",
"dev:migrate:postgres": "export DEBUG=1 && source env/bin/activate && python manage.py migrate",
"dev:migrate:clickhouse": "export DEBUG=1 && source env/bin/activate && python manage.py migrate_clickhouse"
"dev:migrate:clickhouse": "export DEBUG=1 && source env/bin/activate && python manage.py migrate_clickhouse",
"prepare": "husky install"
},
"dependencies": {
"@babel/core": "^7.10.4",
@ -210,11 +211,6 @@
"optionalDependencies": {
"fsevents": "^2.1.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx,json,yaml,yml,css,scss}": "prettier --write",
"(frontend/**).{js,jsx,mjs,ts,tsx}": "eslint -c .eslintrc.js --fix",