-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
37 lines (36 loc) · 1.5 KB
/
oxlint.config.ts
File metadata and controls
37 lines (36 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from '@apify/oxlint-config';
export default defineConfig({
ignorePatterns: ['**/node_modules', 'dist', 'coverage'],
rules: {
'typescript/no-explicit-any': 'off',
'import/extensions': 'off',
},
overrides: [
{
files: ['*.config.ts', 'jest.config.ts', '.github/scripts/**'],
rules: {
'no-console': 'off',
'import/no-default-export': 'off',
},
},
{
files: ['test/**'],
rules: {
// Tests use the `try { ... } catch (err) { expect(err)... }` pattern. Migrating
// to `await expect(...).rejects.toX(...)` is out of scope for the lint migration.
'jest/no-conditional-expect': 'off',
'vitest/no-conditional-expect': 'off',
// Some assertions live in helper functions (e.g. testTaxNumber) and a handful of
// intentionally-empty `test.skip(...)` placeholders trip the rule. Too noisy to
// enforce in this repo.
'jest/expect-expect': 'off',
'vitest/expect-expect': 'off',
// Skipped tests are kept intentionally as TODOs for the request-queue v2 work.
'jest/no-disabled-tests': 'off',
'vitest/no-disabled-tests': 'off',
// Test files export shared helper types (e.g. `TestQueue` interface).
'jest/no-export': 'off',
},
},
],
});