-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.oxlintrc.json
More file actions
75 lines (75 loc) · 2.08 KB
/
Copy path.oxlintrc.json
File metadata and controls
75 lines (75 loc) · 2.08 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "promise", "node", "jest", "vitest", "eslint", "oxc", "vue"],
"categories": {
"correctness": "error",
"suspicious": "off",
"pedantic": "off",
"perf": "warn",
"style": "off",
"restriction": "off",
"nursery": "off"
},
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/.nuxt/**",
"**/.output/**",
"**/coverage/**",
"**/test-results/**",
"**/.cache/**",
"**/.pnpm-store/**",
"**/.turbo/**",
"**/.git/**",
"**/.astro/**",
"**/_locales_hashes/**"
],
"rules": {
"prefer-const": "error",
"no-debugger": "error",
"no-alert": "error",
"eqeqeq": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
"import/no-cycle": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"eslint/no-unused-expressions": "off"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/test/**/*.ts", "**/tests/**/*.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"jest/prefer-snapshot-hint": "off",
"vitest/prefer-snapshot-hint": "off",
"jest/no-conditional-expect": "off",
"vitest/no-conditional-expect": "off",
"vitest/no-conditional-tests": "off",
"jest/valid-expect": "off",
"jest/expect-expect": "off",
"vitest/expect-expect": "off",
"jest/require-to-throw-message": "off",
"vitest/require-to-throw-message": "off",
"jest/valid-title": "off",
"vitest/valid-title": "off",
"jest/valid-describe-callback": "off",
"jest/no-export": "off",
"vitest/require-mock-type-parameters": "off",
"eslint/no-await-in-loop": "off"
}
},
{
"files": ["**/*.svelte"],
"rules": {
"eslint/no-unassigned-vars": "off"
}
},
{
"files": ["**/env.d.ts"],
"rules": {
"typescript/triple-slash-reference": "off"
}
}
]
}