-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use biome for code formatting (#2301)
This takes ~50ms on my machine 🤯 - closes #2366 - Replacing spaces with tabs won't be done right here, right now. - eslint and biome are reconciled - ~biome check fails because of typescript errors - we can either fix those or find a way to ignore it~
- Loading branch information
Showing
310 changed files
with
6,220 additions
and
4,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,71 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2020": true, | ||
"node": true | ||
}, | ||
"extends": "@apify/eslint-config-ts", | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json", | ||
"ecmaVersion": 2022 | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"dist", | ||
"coverage", | ||
"**/*.d.ts" | ||
], | ||
"overrides": [ | ||
{ | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"files": [ | ||
"*.ts" | ||
], | ||
"rules": { | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
"@typescript-eslint/consistent-type-imports": ["error", { | ||
"disallowTypeAnnotations": false | ||
}], | ||
"@typescript-eslint/consistent-type-definitions": ["error", "interface"], | ||
"@typescript-eslint/member-delimiter-style": ["error", { | ||
"multiline": { "delimiter": "semi", "requireLast": true }, | ||
"singleline": { "delimiter": "semi", "requireLast": false } | ||
}], | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"no-empty-function": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/comma-dangle": ["error", "always-multiline"] | ||
} | ||
} | ||
], | ||
"rules": { | ||
"quote-props": ["error", "consistent"], | ||
"import/no-extraneous-dependencies": "off", | ||
"max-classes-per-file": 0, | ||
"no-console": "error", | ||
"no-underscore-dangle": 0, | ||
"no-void": 0, | ||
"max-len": ["error", { | ||
"code": 160, | ||
"ignoreUrls": true, | ||
"ignoreComments": true | ||
}], | ||
"import/order": ["error", { | ||
"groups": ["builtin", "external", ["parent", "sibling"], "index", "object"], | ||
"alphabetize": { "order": "asc", "caseInsensitive": true }, | ||
"newlines-between": "always" | ||
}] | ||
} | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2020": true, | ||
"node": true | ||
}, | ||
"extends": ["@apify/eslint-config-ts", "prettier"], | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json", | ||
"ecmaVersion": 2022 | ||
}, | ||
"ignorePatterns": ["node_modules", "dist", "coverage", "**/*.d.ts"], | ||
"overrides": [ | ||
{ | ||
"plugins": ["@typescript-eslint"], | ||
"files": ["*.ts"], | ||
"rules": { | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
"disallowTypeAnnotations": false | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-definitions": [ | ||
"error", | ||
"interface" | ||
], | ||
"@typescript-eslint/member-delimiter-style": [ | ||
"error", | ||
{ | ||
"multiline": { "delimiter": "semi", "requireLast": true }, | ||
"singleline": { "delimiter": "semi", "requireLast": false } | ||
} | ||
], | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"no-empty-function": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/comma-dangle": ["error", "always-multiline"] | ||
} | ||
} | ||
], | ||
"rules": { | ||
"quote-props": ["error", "consistent"], | ||
"import/no-extraneous-dependencies": "off", | ||
"max-classes-per-file": 0, | ||
"no-console": "error", | ||
"no-underscore-dangle": 0, | ||
"no-void": 0, | ||
"max-len": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
["parent", "sibling"], | ||
"index", | ||
"object" | ||
], | ||
"alphabetize": { "order": "asc", "caseInsensitive": true }, | ||
"newlines-between": "always" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"formatter": { | ||
"ignore": ["website/**", "packages/*/dist/**", "package.json"], | ||
"formatWithErrors": true | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"semicolons": "always", | ||
"trailingComma": "all", | ||
"lineWidth": 120, | ||
"indentStyle": "space", | ||
"indentWidth": 4, | ||
"quoteProperties": "preserve", | ||
"lineEnding": "lf" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"root": true, | ||
"extends": "@apify/ts", | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json", | ||
"ecmaVersion": 2022 | ||
}, | ||
"rules": { | ||
"import/extensions": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"no-console": "off" | ||
} | ||
"root": true, | ||
"extends": "@apify/ts", | ||
"parserOptions": { | ||
"project": "./tsconfig.eslint.json", | ||
"ecmaVersion": 2022 | ||
}, | ||
"rules": { | ||
"import/extensions": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"no-console": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"extends": "@apify/tsconfig", | ||
"compilerOptions": { | ||
"baseUrl": "../..", | ||
"paths": { | ||
"crawlee": ["packages/crawlee/src"], | ||
"@crawlee/basic": ["packages/basic-crawler/src"], | ||
"@crawlee/browser": ["packages/browser-crawler/src"], | ||
"@crawlee/http": ["packages/http-crawler/src"], | ||
"@crawlee/linkedom": ["packages/linkedom-crawler/src"], | ||
"@crawlee/jsdom": ["packages/jsdom-crawler/src"], | ||
"@crawlee/cheerio": ["packages/cheerio-crawler/src"], | ||
"@crawlee/playwright": ["packages/playwright-crawler/src"], | ||
"@crawlee/puppeteer": ["packages/puppeteer-crawler/src"], | ||
"@crawlee/*": ["packages/*/src"] | ||
}, | ||
"target": "ES2022", | ||
"module": "ES2022", | ||
"noUnusedParameters": false | ||
} | ||
"extends": "@apify/tsconfig", | ||
"compilerOptions": { | ||
"baseUrl": "../..", | ||
"paths": { | ||
"crawlee": ["packages/crawlee/src"], | ||
"@crawlee/basic": ["packages/basic-crawler/src"], | ||
"@crawlee/browser": ["packages/browser-crawler/src"], | ||
"@crawlee/http": ["packages/http-crawler/src"], | ||
"@crawlee/linkedom": ["packages/linkedom-crawler/src"], | ||
"@crawlee/jsdom": ["packages/jsdom-crawler/src"], | ||
"@crawlee/cheerio": ["packages/cheerio-crawler/src"], | ||
"@crawlee/playwright": ["packages/playwright-crawler/src"], | ||
"@crawlee/puppeteer": ["packages/puppeteer-crawler/src"], | ||
"@crawlee/*": ["packages/*/src"] | ||
}, | ||
"target": "ES2022", | ||
"module": "ES2022", | ||
"noUnusedParameters": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.