-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathoxlint.json
More file actions
37 lines (37 loc) · 1.03 KB
/
oxlint.json
File metadata and controls
37 lines (37 loc) · 1.03 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": [
"node_modules/",
"build/",
".svelte-kit/",
"dist/",
".flatpak-builder/",
"src-tauri/target/",
"target/"
],
"rules": {
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "caughtErrorsIgnorePattern": "^_" }],
"no-unassigned-vars": "off",
"no-unused-expressions": "off",
"no-explicit-any": "error",
"no-restricted-types": [
"error",
{
"types": {
"undefined": {
"message": "Avoid explicit `undefined` types. Use optional params/properties (`?`) or `null`/`void` where intentional."
},
"Function": {
"message": "Avoid `Function`; use an explicit function signature."
},
"Object": {
"message": "Avoid `Object`; use a concrete object type."
},
"{}": {
"message": "Avoid `{}`; use a concrete object shape."
}
}
}
]
}
}