-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy path.oxlintrc.json
More file actions
75 lines (75 loc) · 1.56 KB
/
.oxlintrc.json
File metadata and controls
75 lines (75 loc) · 1.56 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": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"categories": {
"correctness": "error",
"suspicious": "warn",
"pedantic": "off",
"perf": "warn",
"style": "off",
"nursery": "off"
},
"rules": {
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-explicit-any": "warn",
"no-empty-pattern": "warn",
"no-constant-condition": "warn",
"consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": false
}
],
"no-floating-promises": "error",
"no-await-thenable": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"no-floating-promises": "off",
"no-await-thenable": "off"
}
},
{
"files": ["forge.config.ts", "vitest.config.ts", "tests/**/*.ts", "tests/**/*.tsx"],
"rules": {
"no-floating-promises": "off",
"no-await-thenable": "off"
}
},
{
"files": ["**/gemini/cli/**/*.ts"],
"rules": {
"no-floating-promises": "off",
"no-await-thenable": "off"
}
}
],
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
".webpack/",
"out/",
"*.min.js",
"*.min.css",
"package-lock.json",
"yarn.lock",
"pnpm-lock.yaml",
"*.log",
"public/",
"resources/",
"docs/",
"config/webpack/",
"scripts/",
"src/agent/gemini/cli/",
"mobile/"
]
}