-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
43 lines (42 loc) · 1.09 KB
/
Copy pathoxlint.config.ts
File metadata and controls
43 lines (42 loc) · 1.09 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 mizdra from '@mizdra/oxlint-config';
import { defineConfig } from 'oxlint';
export default defineConfig({
extends: [mizdra.base, mizdra.typescript, mizdra.node],
ignorePatterns: ['**/*.css.d.ts', 'example', 'docs/how-does-definition-jumps-work', 'bin/**'],
rules: {
'no-console': 'error',
'typescript/consistent-type-imports': ['error', { disallowTypeAnnotations: false }],
},
overrides: [
{
files: ['**/*.test.{ts,tsx,cts,mts}', '**/test-util/**/*.{ts,tsx,cts,mts}'],
rules: {
'no-console': 'off',
},
},
{
files: ['src/**'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
'./*/*',
'../*/*',
'!./*.js',
'!../*.js',
'!./*/index.js',
'!../*/index.js',
'!./*/util.js',
'!../*/util.js',
'!./library/*',
'!../library/*',
'!./test-util/*',
'!../test-util/*',
],
},
],
},
},
],
});