-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.oxlintrc.json
More file actions
106 lines (106 loc) · 3.24 KB
/
Copy path.oxlintrc.json
File metadata and controls
106 lines (106 loc) · 3.24 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
// Type-aware rules (no-floating-promises, no-misused-promises,
// no-unsafe-type-assertion) stay on tsc until oxlint can honor them.
"plugins": ["eslint", "typescript"],
"jsPlugins": ["./scripts/oxlint-plugin-corbits.js"],
"categories": {
"correctness": "error"
},
"ignorePatterns": [
"dist/**",
"vendor/**",
".worktrees/**",
"**/.worktrees/**",
".scratch/**",
"**/.scratch/**",
"scratch/**",
"**/scratch/**",
"tmp/**",
"**/tmp/**",
".claude/**",
"**/.claude/**",
".tmp/**",
"**/.tmp/**",
"node_modules/**",
"**/node_modules/**"
],
"options": {
"reportUnusedDisableDirectives": "error"
},
"rules": {
"no-console": "error",
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-unused-expressions": ["error", { "allowTaggedTemplates": true }],
"typescript/adjacent-overload-signatures": "error",
"typescript/array-type": "error",
"typescript/ban-ts-comment": "error",
"typescript/ban-tslint-comment": "error",
"typescript/class-literal-property-style": "error",
"typescript/consistent-generic-constructors": "error",
"typescript/consistent-indexed-object-style": "error",
"typescript/consistent-type-assertions": "error",
"typescript/consistent-type-definitions": "off",
"typescript/no-confusing-non-null-assertion": "error",
"typescript/no-duplicate-enum-values": "error",
"typescript/no-dynamic-delete": "error",
"typescript/no-empty-interface": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-extraneous-class": "error",
"typescript/no-inferrable-types": "error",
"typescript/no-invalid-void-type": "error",
"typescript/no-misused-new": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-asserted-nullish-coalescing": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-this-alias": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-declaration-merging": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-wrapper-object-types": "error",
"typescript/prefer-as-const": "error",
"typescript/prefer-for-of": "error",
"typescript/prefer-function-type": "error",
"typescript/prefer-literal-enum-member": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/unified-signatures": "error",
"no-empty-function": "error"
},
"overrides": [
{
"files": ["src/util/control-char-strip.ts"],
"rules": {
"no-control-regex": "off"
}
},
{
"files": ["scripts/**"],
"rules": {
"no-console": "off"
}
},
{
"files": ["src/tui/smoke.ts"],
"rules": {
"no-console": "off"
}
},
{
"files": ["**/*.test.ts"],
"rules": {
"corbits/no-bare-mock-module": "error"
}
}
]
}