Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

chore: use lint-staged in pre-commit hook (#3442)

Richard Solar4ad9948a3f81
diff --git a/.husky/pre-commit b/.husky/pre-commit
index b4da9a057..372362317 100644
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1 +1 @@
-yarn format
+yarn lint-staged
diff --git a/package.json b/package.json
index 3f98325c9..d0144cb5b 100644
--- a/package.json
+++ b/package.json
@@ -115,6 +115,9 @@
"typescript-eslint": "^8.28.0",
"vitest": "^4.0.16"
},
+ "lint-staged": {
+ "**/*.{js,ts,mjs,mts,cjs,cts,json,css}": "biome format --write --no-errors-on-unmatched"
+ },
"packageManager": "[email protected]",
"volta": {
"node": "24.13.0",