-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy path.oxlintrc.json
More file actions
62 lines (62 loc) · 1.42 KB
/
.oxlintrc.json
File metadata and controls
62 lines (62 loc) · 1.42 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "vitest"],
"env": {
"builtin": true,
"browser": true
},
"ignorePatterns": ["**/dist/", "**/coverage/", "docs/.vitepress/"],
"rules": {
"no-debugger": "error",
"no-console": [
"error",
{
"allow": ["warn", "error", "info"]
}
],
"no-restricted-imports": [
"error",
{
"patterns": ["src/*"]
}
],
"oxc/no-const-enum": "error",
"oxc/no-rest-spread-properties": "error",
"oxc/no-async-await": "error",
"oxc/no-optional-chaining": "error",
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"typescript/prefer-ts-expect-error": "error",
"typescript/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports",
"disallowTypeAnnotations": false
}
],
"typescript/no-import-type-side-effects": "error",
"typescript/no-explicit-any": "off",
"typescript/no-unused-vars": "off",
"typescript/ban-ts-comment": "off"
},
"overrides": [
{
"files": ["tests/**/*.{spec.ts,vue}"],
"rules": {
"no-console": "off",
"typescript/no-explicit-any": "off",
"vitest/warn-todo": "off"
}
},
{
"files": ["rollup.config.ts", "vitest.config.ts"],
"rules": {
"no-console": "off"
}
}
]
}