-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
40 lines (39 loc) · 1.06 KB
/
oxlint.config.ts
File metadata and controls
40 lines (39 loc) · 1.06 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
import { defineConfig } from 'oxlint';
export default defineConfig({
plugins: ['typescript', 'import', 'oxc', 'unicorn'],
ignorePatterns: ['dist', 'coverage', 'node_modules'],
categories: {
correctness: 'error',
suspicious: 'warn',
perf: 'warn',
},
rules: {
'typescript/no-explicit-any': 'warn',
'typescript/no-non-null-assertion': 'warn',
'import/no-cycle': 'error',
'import/no-self-import': 'error',
'unicorn/no-null': 'off',
'unicorn/no-useless-spread': 'off',
},
overrides: [
{
files: ['apps/web/**/*.{ts,tsx}'],
plugins: ['react', 'jsx-a11y'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/no-direct-mutation-state': 'error',
'react/jsx-no-target-blank': 'error',
'jsx-a11y/alt-text': 'error',
'jsx-a11y/anchor-has-content': 'error',
},
},
{
files: ['**/*.spec.ts', '**/*.spec.tsx'],
plugins: ['vitest'],
rules: {
'typescript/no-explicit-any': 'off',
'typescript/no-non-null-assertion': 'off',
},
},
],
});