forked from apify/apify-client-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
43 lines (42 loc) · 1.71 KB
/
Copy pathoxlint.config.ts
File metadata and controls
43 lines (42 loc) · 1.71 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
import { defineConfig } from '@apify/oxlint-config';
export default defineConfig({
ignorePatterns: ['**/node_modules', '**/dist', 'coverage', 'website', '**/*.d.ts'],
rules: {
'typescript/no-explicit-any': 'off',
'consistent-return': 'off',
'no-use-before-define': '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/**'],
rules: {
'no-console': 'off',
'no-useless-constructor': 'off',
'typescript/ban-ts-comment': 'off',
'typescript/no-empty-function': 'off',
'typescript/no-unused-vars': 'off',
// Tests use the `try { await ... } catch (err) { expect(err)... }` pattern.
// Migrating to `await expect(...).rejects.toX(...)` is out of scope for the
// lint migration — follow-up to enable.
'jest/no-conditional-expect': 'off',
'vitest/no-conditional-expect': 'off',
// A handful of helper-based tests have no direct `expect` (assertions live in
// the helper). Same follow-up to clean up.
'jest/expect-expect': 'off',
'vitest/expect-expect': 'off',
// Some cross-test helper functions call `expect` outside an explicit test block.
'jest/no-standalone-expect': 'off',
'vitest/no-standalone-expect': 'off',
},
},
],
});