-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.oxlintrc.json
More file actions
120 lines (120 loc) · 4.34 KB
/
.oxlintrc.json
File metadata and controls
120 lines (120 loc) · 4.34 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"import",
"unicorn",
"node",
"oxc",
"eslint",
"promise",
"vitest",
"jsdoc"
],
"env": {
"node": true,
"es6": true
},
"globals": {},
"settings": {},
"categories": {
"correctness": "error",
"perf": "error",
"suspicious": "warn"
},
"rules": {
"eqeqeq": "error",
"import/no-cycle": "error",
"no-unused-vars": [
"error",
{
"caughtErrors": "none",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"no-await-in-loop": "off",
"jsdoc/check-tag-names": [
"warn",
{
"typed": true,
"enableFixer": false
}
],
"jsdoc/require-yields": "off"
},
"overrides": [
{
"files": ["*.ts"],
"plugins": ["typescript"],
"rules": {
"typescript/no-floating-promises": [
"error",
{
"ignoreVoid": true,
"ignoreIIFE": true
}
],
"typescript/no-misused-promises": [
"error",
{
"checksVoidReturn": false,
"checksConditionals": true
}
],
"typescript/await-thenable": "error",
"typescript/no-array-delete": "error",
"typescript/no-base-to-string": "error",
"typescript/no-confusing-void-expression": "error",
"typescript/no-duplicate-type-constituents": "error",
"typescript/no-for-in-array": "error",
"typescript/no-implied-eval": "error",
"typescript/no-meaningless-void-operator": "error",
"typescript/no-misused-spread": "error",
"typescript/no-mixed-enums": "error",
"typescript/no-redundant-type-constituents": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-template-expression": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-extraneous-class": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unsafe-enum-comparison": "error",
"typescript/no-unsafe-return": "error",
"typescript/no-unsafe-unary-minus": "error",
"typescript/non-nullable-type-assertion-style": "error",
"typescript/only-throw-error": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/prefer-reduce-type-parameter": "error",
"typescript/prefer-return-this-type": "error",
"typescript/related-getter-setter-pairs": "error",
"typescript/require-array-sort-compare": "error",
"typescript/require-await": "error",
"typescript/restrict-plus-operands": "error",
"typescript/restrict-template-expressions": "error",
"typescript/return-await": ["error", "always"],
"typescript/switch-exhaustiveness-check": "error",
"typescript/unbound-method": "error",
"typescript/use-unknown-in-catch-callback-variable": "error"
}
},
// Disable errors with `any | null` types
{
"files": [
"lib/types/ContainerStatsResponse.ts",
"lib/types/SystemVersionComponentsInner.ts"
],
"plugins": ["typescript"],
"rules": {
"typescript/no-redundant-type-constituents": "off"
}
},
// Disable errors with `@` character used within jsdoc description
{
"files": ["lib/types/ExecConfig.ts", "lib/docker-client.ts"],
"rules": {
"check-tag-names": "off"
}
}
]
}