-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
34 lines (33 loc) · 995 Bytes
/
oxlint.config.ts
File metadata and controls
34 lines (33 loc) · 995 Bytes
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
import { defineConfig } from '@apify/oxlint-config';
export default defineConfig({
ignorePatterns: [
'**/node_modules',
'**/dist',
'.docusaurus',
'build',
'sources/api',
'apify-api',
'patches',
'examples',
],
rules: {
'typescript/no-explicit-any': 'off',
'no-param-reassign': 'off',
'no-void': 'off',
'no-console': 'off',
'import/no-default-export': 'off',
// Docs/theme React event handlers commonly call async functions without
// awaiting; treating that as fire-and-forget is intentional here.
'typescript/no-floating-promises': 'off',
'typescript/promise-function-async': 'off',
},
overrides: [
{
files: ['*.config.ts', '*.config.mts', '*.config.mjs', '*.config.js'],
rules: {
'no-console': 'off',
'import/no-default-export': 'off',
},
},
],
});