Skip to content

Commit

Permalink
chore: run biome as a pre-commit hook (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan authored May 23, 2024
1 parent eed657a commit ebe9a8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn format
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"lint": "eslint \"packages/**/*.ts\" \"test/**/*.ts\"",
"lint:fix": "eslint \"packages/**/*.ts\" \"test/**/*.ts\" --fix",
"format": "biome format --write .",
"format:check": "biome format ."
"format:check": "biome format .",
"prepare": "husky"
},
"devDependencies": {
"@apify/eslint-config-ts": "^0.4.0",
Expand Down Expand Up @@ -97,7 +98,7 @@
"gen-esm-wrapper": "^1.1.3",
"globby": "^14.0.0",
"got": "^13.0.0",
"husky": "^8.0.1",
"husky": "^9.0.11",
"is-ci": "^3.0.1",
"lerna": "^8.0.0",
"lint-staged": "^15.0.0",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ __metadata:
gen-esm-wrapper: "npm:^1.1.3"
globby: "npm:^14.0.0"
got: "npm:^13.0.0"
husky: "npm:^8.0.1"
husky: "npm:^9.0.11"
is-ci: "npm:^3.0.1"
lerna: "npm:^8.0.0"
lint-staged: "npm:^15.0.0"
Expand Down Expand Up @@ -6674,12 +6674,12 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^8.0.1":
version: 8.0.3
resolution: "husky@npm:8.0.3"
"husky@npm:^9.0.11":
version: 9.0.11
resolution: "husky@npm:9.0.11"
bin:
husky: lib/bin.js
checksum: 10c0/6722591771c657b91a1abb082e07f6547eca79144d678e586828ae806499d90dce2a6aee08b66183fd8b085f19d20e0990a2ad396961746b4c8bd5bdb619d668
husky: bin.mjs
checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
languageName: node
linkType: hard

Expand Down

0 comments on commit ebe9a8d

Please sign in to comment.