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.

Adding .editorconfig and 'lint:fix' command

Marek Trunkat2a11880e9062
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..2895e4735
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,11 @@
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+end_of_line = lf
+# editorconfig-tools is unable to ignore longs strings or urls
+max_line_length = null
diff --git a/package.json b/package.json
index 8652643de..505e2bcca 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,8 @@
"prepare": "npm run build-toc && npm run build",
"prepublishOnly": "(test $RUNNING_FROM_SCRIPT || (echo \"You must use publish.sh instead of 'npm publish' directly!\"; exit 1)) && npm test && npm run lint",
"clean": "rm -rf build",
- "lint": "npm run build && eslint src test"
+ "lint": "npm run build && ./node_modules/.bin/eslint ./src ./test",
+ "lint:fix": "./node_modules/.bin/eslint ./src ./test --ext .js,.jsx --fix"
},
"dependencies": {
"apify-client": "^0.2.9",