Repository navigation
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
49 lines (48 loc) · 1.64 KB
/
Copy pathoxlint.config.ts
File metadata and controls
49 lines (48 loc) · 1.64 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
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from '@apify/oxlint-config';
export default defineConfig({
ignorePatterns: [
'**/node_modules',
'**/dist',
'coverage',
'website',
'docs',
'scripts',
'**/*.d.ts',
// Actor source code lives in `packages/actor-scraper/*` and is bundled per-actor
// with its own tsconfig that targets a different module system. Linting is handled
// at the scraper-tools level; the actor packages are application code, not libraries.
'packages/actor-scraper',
],
rules: {
'typescript/no-explicit-any': 'off',
'typescript/ban-ts-comment': 'off',
'no-param-reassign': 'off',
'no-void': 'off',
},
overrides: [
{
files: ['*.config.ts', '*.config.mts', '*.config.mjs'],
rules: {
'no-console': 'off',
'import/no-default-export': 'off',
},
},
{
files: ['test/**', '**/test/**'],
rules: {
'no-console': 'off',
'no-useless-constructor': 'off',
'typescript/no-empty-function': 'off',
'typescript/no-unused-vars': 'off',
'jest/no-conditional-expect': 'off',
'vitest/no-conditional-expect': 'off',
'jest/expect-expect': 'off',
'vitest/expect-expect': 'off',
'jest/no-standalone-expect': 'off',
'vitest/no-standalone-expect': 'off',
'jest/no-disabled-tests': 'off',
'vitest/no-disabled-tests': 'off',
},
},
],
});