-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
39 lines (37 loc) · 1011 Bytes
/
Copy pathoxlint.config.ts
File metadata and controls
39 lines (37 loc) · 1011 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
35
36
37
38
39
import { defineConfig } from 'oxlint';
export default defineConfig({
plugins: ['eslint', 'typescript', 'unicorn', 'promise', 'import'],
categories: {
correctness: 'error',
suspicious: 'error',
perf: 'error',
restriction: 'error',
style: 'warn'
},
options: {
typeAware: true,
typeCheck: true
},
rules: {
'unicorn/catch-error-name': ['error', { name: 'err' }],
'unicorn/expiring-todo-comments': 'off',
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
'unicorn/import-style': 'off',
'unicorn/isolated-functions': 'off',
'unicorn/no-nested-ternary': 'off',
'unicorn/no-null': 'off',
'no-unused-properties': 'error',
'no-magic-numbers': 'off',
'sort-keys': 'off',
'max-statements': 'off',
'id-length': 'off',
'capitalized-comments': 'off',
'func-style': 'off',
'max-params': ['error', { max: 6 }],
'no-empty': ['error', { allowEmptyCatch: true }]
},
env: {
builtin: true
},
ignorePatterns: ['node_modules', 'out', 'dist', '**/fixtures/**/*']
});