corsa-oxlint 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +171 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/ast_utils.d.ts +17 -0
- package/dist/ast_utils.js +21 -0
- package/dist/ast_utils.js.map +1 -0
- package/dist/checker.d.ts +11 -0
- package/dist/checker.js +80 -0
- package/dist/checker.js.map +1 -0
- package/dist/compat.d.ts +194 -0
- package/dist/compat.js +103 -0
- package/dist/compat.js.map +1 -0
- package/dist/context.d.ts +24 -0
- package/dist/context.js +134 -0
- package/dist/context.js.map +1 -0
- package/dist/eslint_utils.d.ts +19 -0
- package/dist/eslint_utils.js +48 -0
- package/dist/eslint_utils.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +11 -0
- package/dist/json_schema.d.ts +11 -0
- package/dist/json_schema.js +17 -0
- package/dist/json_schema.js.map +1 -0
- package/dist/node_map.d.ts +18 -0
- package/dist/node_map.js +52 -0
- package/dist/node_map.js.map +1 -0
- package/dist/parser_services.d.ts +16 -0
- package/dist/parser_services.js +48 -0
- package/dist/parser_services.js.map +1 -0
- package/dist/plugin.d.ts +26 -0
- package/dist/plugin.js +83 -0
- package/dist/plugin.js.map +1 -0
- package/dist/registry.d.ts +12 -0
- package/dist/registry.js +35 -0
- package/dist/registry.js.map +1 -0
- package/dist/rule_tester.d.ts +37 -0
- package/dist/rule_tester.js +120 -0
- package/dist/rule_tester.js.map +1 -0
- package/dist/rules/ast.d.ts +16 -0
- package/dist/rules/ast.js +56 -0
- package/dist/rules/ast.js.map +1 -0
- package/dist/rules/await_thenable.d.ts +16 -0
- package/dist/rules/await_thenable.js +23 -0
- package/dist/rules/await_thenable.js.map +1 -0
- package/dist/rules/index.d.ts +473 -0
- package/dist/rules/index.js +120 -0
- package/dist/rules/index.js.map +1 -0
- package/dist/rules/no_array_delete.d.ts +16 -0
- package/dist/rules/no_array_delete.js +29 -0
- package/dist/rules/no_array_delete.js.map +1 -0
- package/dist/rules/no_base_to_string.d.ts +16 -0
- package/dist/rules/no_base_to_string.js +66 -0
- package/dist/rules/no_base_to_string.js.map +1 -0
- package/dist/rules/no_floating_promises.d.ts +16 -0
- package/dist/rules/no_floating_promises.js +42 -0
- package/dist/rules/no_floating_promises.js.map +1 -0
- package/dist/rules/no_for_in_array.d.ts +16 -0
- package/dist/rules/no_for_in_array.js +16 -0
- package/dist/rules/no_for_in_array.js.map +1 -0
- package/dist/rules/no_implied_eval.d.ts +16 -0
- package/dist/rules/no_implied_eval.js +35 -0
- package/dist/rules/no_implied_eval.js.map +1 -0
- package/dist/rules/no_mixed_enums.d.ts +16 -0
- package/dist/rules/no_mixed_enums.js +41 -0
- package/dist/rules/no_mixed_enums.js.map +1 -0
- package/dist/rules/no_unsafe_assignment.d.ts +16 -0
- package/dist/rules/no_unsafe_assignment.js +41 -0
- package/dist/rules/no_unsafe_assignment.js.map +1 -0
- package/dist/rules/no_unsafe_return.d.ts +16 -0
- package/dist/rules/no_unsafe_return.js +56 -0
- package/dist/rules/no_unsafe_return.js.map +1 -0
- package/dist/rules/no_unsafe_unary_minus.d.ts +16 -0
- package/dist/rules/no_unsafe_unary_minus.js +28 -0
- package/dist/rules/no_unsafe_unary_minus.js.map +1 -0
- package/dist/rules/only_throw_error.d.ts +16 -0
- package/dist/rules/only_throw_error.js +16 -0
- package/dist/rules/only_throw_error.js.map +1 -0
- package/dist/rules/prefer_find.d.ts +16 -0
- package/dist/rules/prefer_find.js +25 -0
- package/dist/rules/prefer_find.js.map +1 -0
- package/dist/rules/prefer_includes.d.ts +16 -0
- package/dist/rules/prefer_includes.js +21 -0
- package/dist/rules/prefer_includes.js.map +1 -0
- package/dist/rules/prefer_promise_reject_errors.d.ts +16 -0
- package/dist/rules/prefer_promise_reject_errors.js +52 -0
- package/dist/rules/prefer_promise_reject_errors.js.map +1 -0
- package/dist/rules/prefer_regexp_exec.d.ts +16 -0
- package/dist/rules/prefer_regexp_exec.js +20 -0
- package/dist/rules/prefer_regexp_exec.js.map +1 -0
- package/dist/rules/prefer_string_starts_ends_with.d.ts +16 -0
- package/dist/rules/prefer_string_starts_ends_with.js +53 -0
- package/dist/rules/prefer_string_starts_ends_with.js.map +1 -0
- package/dist/rules/require_array_sort_compare.d.ts +16 -0
- package/dist/rules/require_array_sort_compare.js +36 -0
- package/dist/rules/require_array_sort_compare.js.map +1 -0
- package/dist/rules/restrict_plus_operands.d.ts +16 -0
- package/dist/rules/restrict_plus_operands.js +62 -0
- package/dist/rules/restrict_plus_operands.js.map +1 -0
- package/dist/rules/rule_creator.d.ts +16 -0
- package/dist/rules/rule_creator.js +22 -0
- package/dist/rules/rule_creator.js.map +1 -0
- package/dist/rules/type_utils.d.ts +56 -0
- package/dist/rules/type_utils.js +102 -0
- package/dist/rules/type_utils.js.map +1 -0
- package/dist/rules/use_unknown_in_catch_callback_variable.d.ts +16 -0
- package/dist/rules/use_unknown_in_catch_callback_variable.js +19 -0
- package/dist/rules/use_unknown_in_catch_callback_variable.js.map +1 -0
- package/dist/session.d.ts +32 -0
- package/dist/session.js +179 -0
- package/dist/session.js.map +1 -0
- package/dist/ts_eslint.d.ts +22 -0
- package/dist/ts_eslint.js +30 -0
- package/dist/ts_eslint.js.map +1 -0
- package/dist/ts_estree.d.ts +2 -0
- package/dist/ts_estree.js +2 -0
- package/dist/types.d.ts +136 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +22 -0
- package/dist/utils.js +22 -0
- package/dist/utils.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
declare namespace index_d_exports {
|
|
2
|
+
export { implementedNativeRuleNames, pendingNativeRuleNames, typescriptOxlintPlugin, typescriptOxlintRules };
|
|
3
|
+
}
|
|
4
|
+
declare const implementedNativeRuleNames: readonly ["await-thenable", "no-array-delete", "no-base-to-string", "no-floating-promises", "no-for-in-array", "no-implied-eval", "no-mixed-enums", "no-unsafe-assignment", "no-unsafe-return", "no-unsafe-unary-minus", "only-throw-error", "prefer-find", "prefer-includes", "prefer-promise-reject-errors", "prefer-regexp-exec", "prefer-string-starts-ends-with", "require-array-sort-compare", "restrict-plus-operands", "use-unknown-in-catch-callback-variable"];
|
|
5
|
+
declare const pendingNativeRuleNames: readonly ["consistent-return", "consistent-type-exports", "dot-notation", "no-confusing-void-expression", "no-deprecated", "no-duplicate-type-constituents", "no-meaningless-void-operator", "no-misused-promises", "no-misused-spread", "no-redundant-type-constituents", "no-unnecessary-boolean-literal-compare", "no-unnecessary-condition", "no-unnecessary-qualifier", "no-unnecessary-template-expression", "no-unnecessary-type-arguments", "no-unnecessary-type-assertion", "no-unnecessary-type-conversion", "no-unnecessary-type-parameters", "no-unsafe-argument", "no-unsafe-call", "no-unsafe-enum-comparison", "no-unsafe-member-access", "no-unsafe-type-assertion", "no-useless-default-assignment", "non-nullable-type-assertion-style", "prefer-nullish-coalescing", "prefer-optional-chain", "prefer-readonly", "prefer-readonly-parameter-types", "prefer-reduce-type-parameter", "prefer-return-this-type", "promise-function-async", "related-getter-setter-pairs", "require-await", "restrict-template-expressions", "return-await", "strict-boolean-expressions", "strict-void-return", "switch-exhaustiveness-check", "unbound-method"];
|
|
6
|
+
declare const typescriptOxlintRules: Readonly<{
|
|
7
|
+
"await-thenable": {
|
|
8
|
+
defaultOptions: never[];
|
|
9
|
+
meta: {
|
|
10
|
+
docs: {
|
|
11
|
+
requiresTypeChecking: boolean;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
type: "problem";
|
|
15
|
+
schema: never[];
|
|
16
|
+
};
|
|
17
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
18
|
+
};
|
|
19
|
+
"no-array-delete": {
|
|
20
|
+
defaultOptions: never[];
|
|
21
|
+
meta: {
|
|
22
|
+
docs: {
|
|
23
|
+
requiresTypeChecking: boolean;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
type: "problem";
|
|
27
|
+
schema: never[];
|
|
28
|
+
};
|
|
29
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
30
|
+
};
|
|
31
|
+
"no-base-to-string": {
|
|
32
|
+
defaultOptions: never[];
|
|
33
|
+
meta: {
|
|
34
|
+
docs: {
|
|
35
|
+
requiresTypeChecking: boolean;
|
|
36
|
+
url: string;
|
|
37
|
+
};
|
|
38
|
+
type: "problem";
|
|
39
|
+
schema: never[];
|
|
40
|
+
};
|
|
41
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
42
|
+
};
|
|
43
|
+
"no-floating-promises": {
|
|
44
|
+
defaultOptions: never[];
|
|
45
|
+
meta: {
|
|
46
|
+
docs: {
|
|
47
|
+
requiresTypeChecking: boolean;
|
|
48
|
+
url: string;
|
|
49
|
+
};
|
|
50
|
+
type: "problem";
|
|
51
|
+
schema: never[];
|
|
52
|
+
};
|
|
53
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
54
|
+
};
|
|
55
|
+
"no-for-in-array": {
|
|
56
|
+
defaultOptions: never[];
|
|
57
|
+
meta: {
|
|
58
|
+
docs: {
|
|
59
|
+
requiresTypeChecking: boolean;
|
|
60
|
+
url: string;
|
|
61
|
+
};
|
|
62
|
+
type: "problem";
|
|
63
|
+
schema: never[];
|
|
64
|
+
};
|
|
65
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
66
|
+
};
|
|
67
|
+
"no-implied-eval": {
|
|
68
|
+
defaultOptions: never[];
|
|
69
|
+
meta: {
|
|
70
|
+
docs: {
|
|
71
|
+
requiresTypeChecking: boolean;
|
|
72
|
+
url: string;
|
|
73
|
+
};
|
|
74
|
+
type: "problem";
|
|
75
|
+
schema: never[];
|
|
76
|
+
};
|
|
77
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
78
|
+
};
|
|
79
|
+
"no-mixed-enums": {
|
|
80
|
+
defaultOptions: never[];
|
|
81
|
+
meta: {
|
|
82
|
+
docs: {
|
|
83
|
+
requiresTypeChecking: boolean;
|
|
84
|
+
url: string;
|
|
85
|
+
};
|
|
86
|
+
type: "problem";
|
|
87
|
+
schema: never[];
|
|
88
|
+
};
|
|
89
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
90
|
+
};
|
|
91
|
+
"no-unsafe-assignment": {
|
|
92
|
+
defaultOptions: never[];
|
|
93
|
+
meta: {
|
|
94
|
+
docs: {
|
|
95
|
+
requiresTypeChecking: boolean;
|
|
96
|
+
url: string;
|
|
97
|
+
};
|
|
98
|
+
type: "problem";
|
|
99
|
+
schema: never[];
|
|
100
|
+
};
|
|
101
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
102
|
+
};
|
|
103
|
+
"no-unsafe-return": {
|
|
104
|
+
defaultOptions: never[];
|
|
105
|
+
meta: {
|
|
106
|
+
docs: {
|
|
107
|
+
requiresTypeChecking: boolean;
|
|
108
|
+
url: string;
|
|
109
|
+
};
|
|
110
|
+
type: "problem";
|
|
111
|
+
schema: never[];
|
|
112
|
+
};
|
|
113
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
114
|
+
};
|
|
115
|
+
"no-unsafe-unary-minus": {
|
|
116
|
+
defaultOptions: never[];
|
|
117
|
+
meta: {
|
|
118
|
+
docs: {
|
|
119
|
+
requiresTypeChecking: boolean;
|
|
120
|
+
url: string;
|
|
121
|
+
};
|
|
122
|
+
type: "problem";
|
|
123
|
+
schema: never[];
|
|
124
|
+
};
|
|
125
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
126
|
+
};
|
|
127
|
+
"only-throw-error": {
|
|
128
|
+
defaultOptions: never[];
|
|
129
|
+
meta: {
|
|
130
|
+
docs: {
|
|
131
|
+
requiresTypeChecking: boolean;
|
|
132
|
+
url: string;
|
|
133
|
+
};
|
|
134
|
+
type: "problem";
|
|
135
|
+
schema: never[];
|
|
136
|
+
};
|
|
137
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
138
|
+
};
|
|
139
|
+
"prefer-find": {
|
|
140
|
+
defaultOptions: never[];
|
|
141
|
+
meta: {
|
|
142
|
+
docs: {
|
|
143
|
+
requiresTypeChecking: boolean;
|
|
144
|
+
url: string;
|
|
145
|
+
};
|
|
146
|
+
type: "problem";
|
|
147
|
+
schema: never[];
|
|
148
|
+
};
|
|
149
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
150
|
+
};
|
|
151
|
+
"prefer-includes": {
|
|
152
|
+
defaultOptions: never[];
|
|
153
|
+
meta: {
|
|
154
|
+
docs: {
|
|
155
|
+
requiresTypeChecking: boolean;
|
|
156
|
+
url: string;
|
|
157
|
+
};
|
|
158
|
+
type: "problem";
|
|
159
|
+
schema: never[];
|
|
160
|
+
};
|
|
161
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
162
|
+
};
|
|
163
|
+
"prefer-promise-reject-errors": {
|
|
164
|
+
defaultOptions: never[];
|
|
165
|
+
meta: {
|
|
166
|
+
docs: {
|
|
167
|
+
requiresTypeChecking: boolean;
|
|
168
|
+
url: string;
|
|
169
|
+
};
|
|
170
|
+
type: "problem";
|
|
171
|
+
schema: never[];
|
|
172
|
+
};
|
|
173
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
174
|
+
};
|
|
175
|
+
"prefer-regexp-exec": {
|
|
176
|
+
defaultOptions: never[];
|
|
177
|
+
meta: {
|
|
178
|
+
docs: {
|
|
179
|
+
requiresTypeChecking: boolean;
|
|
180
|
+
url: string;
|
|
181
|
+
};
|
|
182
|
+
type: "problem";
|
|
183
|
+
schema: never[];
|
|
184
|
+
};
|
|
185
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
186
|
+
};
|
|
187
|
+
"prefer-string-starts-ends-with": {
|
|
188
|
+
defaultOptions: never[];
|
|
189
|
+
meta: {
|
|
190
|
+
docs: {
|
|
191
|
+
requiresTypeChecking: boolean;
|
|
192
|
+
url: string;
|
|
193
|
+
};
|
|
194
|
+
type: "problem";
|
|
195
|
+
schema: never[];
|
|
196
|
+
};
|
|
197
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
198
|
+
};
|
|
199
|
+
"require-array-sort-compare": {
|
|
200
|
+
defaultOptions: never[];
|
|
201
|
+
meta: {
|
|
202
|
+
docs: {
|
|
203
|
+
requiresTypeChecking: boolean;
|
|
204
|
+
url: string;
|
|
205
|
+
};
|
|
206
|
+
type: "problem";
|
|
207
|
+
schema: never[];
|
|
208
|
+
};
|
|
209
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
210
|
+
};
|
|
211
|
+
"restrict-plus-operands": {
|
|
212
|
+
defaultOptions: never[];
|
|
213
|
+
meta: {
|
|
214
|
+
docs: {
|
|
215
|
+
requiresTypeChecking: boolean;
|
|
216
|
+
url: string;
|
|
217
|
+
};
|
|
218
|
+
type: "problem";
|
|
219
|
+
schema: never[];
|
|
220
|
+
};
|
|
221
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
222
|
+
};
|
|
223
|
+
"use-unknown-in-catch-callback-variable": {
|
|
224
|
+
defaultOptions: never[];
|
|
225
|
+
meta: {
|
|
226
|
+
docs: {
|
|
227
|
+
requiresTypeChecking: boolean;
|
|
228
|
+
url: string;
|
|
229
|
+
};
|
|
230
|
+
type: "problem";
|
|
231
|
+
schema: never[];
|
|
232
|
+
};
|
|
233
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
234
|
+
};
|
|
235
|
+
}>;
|
|
236
|
+
declare const typescriptOxlintPlugin: {
|
|
237
|
+
meta: {
|
|
238
|
+
name: string;
|
|
239
|
+
};
|
|
240
|
+
rules: Readonly<{
|
|
241
|
+
"await-thenable": {
|
|
242
|
+
defaultOptions: never[];
|
|
243
|
+
meta: {
|
|
244
|
+
docs: {
|
|
245
|
+
requiresTypeChecking: boolean;
|
|
246
|
+
url: string;
|
|
247
|
+
};
|
|
248
|
+
type: "problem";
|
|
249
|
+
schema: never[];
|
|
250
|
+
};
|
|
251
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
252
|
+
};
|
|
253
|
+
"no-array-delete": {
|
|
254
|
+
defaultOptions: never[];
|
|
255
|
+
meta: {
|
|
256
|
+
docs: {
|
|
257
|
+
requiresTypeChecking: boolean;
|
|
258
|
+
url: string;
|
|
259
|
+
};
|
|
260
|
+
type: "problem";
|
|
261
|
+
schema: never[];
|
|
262
|
+
};
|
|
263
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
264
|
+
};
|
|
265
|
+
"no-base-to-string": {
|
|
266
|
+
defaultOptions: never[];
|
|
267
|
+
meta: {
|
|
268
|
+
docs: {
|
|
269
|
+
requiresTypeChecking: boolean;
|
|
270
|
+
url: string;
|
|
271
|
+
};
|
|
272
|
+
type: "problem";
|
|
273
|
+
schema: never[];
|
|
274
|
+
};
|
|
275
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
276
|
+
};
|
|
277
|
+
"no-floating-promises": {
|
|
278
|
+
defaultOptions: never[];
|
|
279
|
+
meta: {
|
|
280
|
+
docs: {
|
|
281
|
+
requiresTypeChecking: boolean;
|
|
282
|
+
url: string;
|
|
283
|
+
};
|
|
284
|
+
type: "problem";
|
|
285
|
+
schema: never[];
|
|
286
|
+
};
|
|
287
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
288
|
+
};
|
|
289
|
+
"no-for-in-array": {
|
|
290
|
+
defaultOptions: never[];
|
|
291
|
+
meta: {
|
|
292
|
+
docs: {
|
|
293
|
+
requiresTypeChecking: boolean;
|
|
294
|
+
url: string;
|
|
295
|
+
};
|
|
296
|
+
type: "problem";
|
|
297
|
+
schema: never[];
|
|
298
|
+
};
|
|
299
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
300
|
+
};
|
|
301
|
+
"no-implied-eval": {
|
|
302
|
+
defaultOptions: never[];
|
|
303
|
+
meta: {
|
|
304
|
+
docs: {
|
|
305
|
+
requiresTypeChecking: boolean;
|
|
306
|
+
url: string;
|
|
307
|
+
};
|
|
308
|
+
type: "problem";
|
|
309
|
+
schema: never[];
|
|
310
|
+
};
|
|
311
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
312
|
+
};
|
|
313
|
+
"no-mixed-enums": {
|
|
314
|
+
defaultOptions: never[];
|
|
315
|
+
meta: {
|
|
316
|
+
docs: {
|
|
317
|
+
requiresTypeChecking: boolean;
|
|
318
|
+
url: string;
|
|
319
|
+
};
|
|
320
|
+
type: "problem";
|
|
321
|
+
schema: never[];
|
|
322
|
+
};
|
|
323
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
324
|
+
};
|
|
325
|
+
"no-unsafe-assignment": {
|
|
326
|
+
defaultOptions: never[];
|
|
327
|
+
meta: {
|
|
328
|
+
docs: {
|
|
329
|
+
requiresTypeChecking: boolean;
|
|
330
|
+
url: string;
|
|
331
|
+
};
|
|
332
|
+
type: "problem";
|
|
333
|
+
schema: never[];
|
|
334
|
+
};
|
|
335
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
336
|
+
};
|
|
337
|
+
"no-unsafe-return": {
|
|
338
|
+
defaultOptions: never[];
|
|
339
|
+
meta: {
|
|
340
|
+
docs: {
|
|
341
|
+
requiresTypeChecking: boolean;
|
|
342
|
+
url: string;
|
|
343
|
+
};
|
|
344
|
+
type: "problem";
|
|
345
|
+
schema: never[];
|
|
346
|
+
};
|
|
347
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
348
|
+
};
|
|
349
|
+
"no-unsafe-unary-minus": {
|
|
350
|
+
defaultOptions: never[];
|
|
351
|
+
meta: {
|
|
352
|
+
docs: {
|
|
353
|
+
requiresTypeChecking: boolean;
|
|
354
|
+
url: string;
|
|
355
|
+
};
|
|
356
|
+
type: "problem";
|
|
357
|
+
schema: never[];
|
|
358
|
+
};
|
|
359
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
360
|
+
};
|
|
361
|
+
"only-throw-error": {
|
|
362
|
+
defaultOptions: never[];
|
|
363
|
+
meta: {
|
|
364
|
+
docs: {
|
|
365
|
+
requiresTypeChecking: boolean;
|
|
366
|
+
url: string;
|
|
367
|
+
};
|
|
368
|
+
type: "problem";
|
|
369
|
+
schema: never[];
|
|
370
|
+
};
|
|
371
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
372
|
+
};
|
|
373
|
+
"prefer-find": {
|
|
374
|
+
defaultOptions: never[];
|
|
375
|
+
meta: {
|
|
376
|
+
docs: {
|
|
377
|
+
requiresTypeChecking: boolean;
|
|
378
|
+
url: string;
|
|
379
|
+
};
|
|
380
|
+
type: "problem";
|
|
381
|
+
schema: never[];
|
|
382
|
+
};
|
|
383
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
384
|
+
};
|
|
385
|
+
"prefer-includes": {
|
|
386
|
+
defaultOptions: never[];
|
|
387
|
+
meta: {
|
|
388
|
+
docs: {
|
|
389
|
+
requiresTypeChecking: boolean;
|
|
390
|
+
url: string;
|
|
391
|
+
};
|
|
392
|
+
type: "problem";
|
|
393
|
+
schema: never[];
|
|
394
|
+
};
|
|
395
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
396
|
+
};
|
|
397
|
+
"prefer-promise-reject-errors": {
|
|
398
|
+
defaultOptions: never[];
|
|
399
|
+
meta: {
|
|
400
|
+
docs: {
|
|
401
|
+
requiresTypeChecking: boolean;
|
|
402
|
+
url: string;
|
|
403
|
+
};
|
|
404
|
+
type: "problem";
|
|
405
|
+
schema: never[];
|
|
406
|
+
};
|
|
407
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
408
|
+
};
|
|
409
|
+
"prefer-regexp-exec": {
|
|
410
|
+
defaultOptions: never[];
|
|
411
|
+
meta: {
|
|
412
|
+
docs: {
|
|
413
|
+
requiresTypeChecking: boolean;
|
|
414
|
+
url: string;
|
|
415
|
+
};
|
|
416
|
+
type: "problem";
|
|
417
|
+
schema: never[];
|
|
418
|
+
};
|
|
419
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
420
|
+
};
|
|
421
|
+
"prefer-string-starts-ends-with": {
|
|
422
|
+
defaultOptions: never[];
|
|
423
|
+
meta: {
|
|
424
|
+
docs: {
|
|
425
|
+
requiresTypeChecking: boolean;
|
|
426
|
+
url: string;
|
|
427
|
+
};
|
|
428
|
+
type: "problem";
|
|
429
|
+
schema: never[];
|
|
430
|
+
};
|
|
431
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
432
|
+
};
|
|
433
|
+
"require-array-sort-compare": {
|
|
434
|
+
defaultOptions: never[];
|
|
435
|
+
meta: {
|
|
436
|
+
docs: {
|
|
437
|
+
requiresTypeChecking: boolean;
|
|
438
|
+
url: string;
|
|
439
|
+
};
|
|
440
|
+
type: "problem";
|
|
441
|
+
schema: never[];
|
|
442
|
+
};
|
|
443
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
444
|
+
};
|
|
445
|
+
"restrict-plus-operands": {
|
|
446
|
+
defaultOptions: never[];
|
|
447
|
+
meta: {
|
|
448
|
+
docs: {
|
|
449
|
+
requiresTypeChecking: boolean;
|
|
450
|
+
url: string;
|
|
451
|
+
};
|
|
452
|
+
type: "problem";
|
|
453
|
+
schema: never[];
|
|
454
|
+
};
|
|
455
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
456
|
+
};
|
|
457
|
+
"use-unknown-in-catch-callback-variable": {
|
|
458
|
+
defaultOptions: never[];
|
|
459
|
+
meta: {
|
|
460
|
+
docs: {
|
|
461
|
+
requiresTypeChecking: boolean;
|
|
462
|
+
url: string;
|
|
463
|
+
};
|
|
464
|
+
type: "problem";
|
|
465
|
+
schema: never[];
|
|
466
|
+
};
|
|
467
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
468
|
+
};
|
|
469
|
+
}>;
|
|
470
|
+
};
|
|
471
|
+
//#endregion
|
|
472
|
+
export { implementedNativeRuleNames, index_d_exports, pendingNativeRuleNames, typescriptOxlintPlugin, typescriptOxlintRules };
|
|
473
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { definePlugin } from "../plugin.js";
|
|
3
|
+
import { awaitThenableRule } from "./await_thenable.js";
|
|
4
|
+
import { noArrayDeleteRule } from "./no_array_delete.js";
|
|
5
|
+
import { noBaseToStringRule } from "./no_base_to_string.js";
|
|
6
|
+
import { noFloatingPromisesRule } from "./no_floating_promises.js";
|
|
7
|
+
import { noForInArrayRule } from "./no_for_in_array.js";
|
|
8
|
+
import { noImpliedEvalRule } from "./no_implied_eval.js";
|
|
9
|
+
import { noMixedEnumsRule } from "./no_mixed_enums.js";
|
|
10
|
+
import { noUnsafeAssignmentRule } from "./no_unsafe_assignment.js";
|
|
11
|
+
import { noUnsafeReturnRule } from "./no_unsafe_return.js";
|
|
12
|
+
import { noUnsafeUnaryMinusRule } from "./no_unsafe_unary_minus.js";
|
|
13
|
+
import { onlyThrowErrorRule } from "./only_throw_error.js";
|
|
14
|
+
import { preferFindRule } from "./prefer_find.js";
|
|
15
|
+
import { preferIncludesRule } from "./prefer_includes.js";
|
|
16
|
+
import { preferPromiseRejectErrorsRule } from "./prefer_promise_reject_errors.js";
|
|
17
|
+
import { preferRegexpExecRule } from "./prefer_regexp_exec.js";
|
|
18
|
+
import { preferStringStartsEndsWithRule } from "./prefer_string_starts_ends_with.js";
|
|
19
|
+
import { requireArraySortCompareRule } from "./require_array_sort_compare.js";
|
|
20
|
+
import { restrictPlusOperandsRule } from "./restrict_plus_operands.js";
|
|
21
|
+
import { useUnknownInCatchCallbackVariableRule } from "./use_unknown_in_catch_callback_variable.js";
|
|
22
|
+
//#region src/bindings/nodejs/typescript_oxlint/ts/rules/index.ts
|
|
23
|
+
var rules_exports = /* @__PURE__ */ __exportAll({
|
|
24
|
+
implementedNativeRuleNames: () => implementedNativeRuleNames,
|
|
25
|
+
pendingNativeRuleNames: () => pendingNativeRuleNames,
|
|
26
|
+
typescriptOxlintPlugin: () => typescriptOxlintPlugin,
|
|
27
|
+
typescriptOxlintRules: () => typescriptOxlintRules
|
|
28
|
+
});
|
|
29
|
+
const implementedNativeRuleNames = [
|
|
30
|
+
"await-thenable",
|
|
31
|
+
"no-array-delete",
|
|
32
|
+
"no-base-to-string",
|
|
33
|
+
"no-floating-promises",
|
|
34
|
+
"no-for-in-array",
|
|
35
|
+
"no-implied-eval",
|
|
36
|
+
"no-mixed-enums",
|
|
37
|
+
"no-unsafe-assignment",
|
|
38
|
+
"no-unsafe-return",
|
|
39
|
+
"no-unsafe-unary-minus",
|
|
40
|
+
"only-throw-error",
|
|
41
|
+
"prefer-find",
|
|
42
|
+
"prefer-includes",
|
|
43
|
+
"prefer-promise-reject-errors",
|
|
44
|
+
"prefer-regexp-exec",
|
|
45
|
+
"prefer-string-starts-ends-with",
|
|
46
|
+
"require-array-sort-compare",
|
|
47
|
+
"restrict-plus-operands",
|
|
48
|
+
"use-unknown-in-catch-callback-variable"
|
|
49
|
+
];
|
|
50
|
+
const pendingNativeRuleNames = [
|
|
51
|
+
"consistent-return",
|
|
52
|
+
"consistent-type-exports",
|
|
53
|
+
"dot-notation",
|
|
54
|
+
"no-confusing-void-expression",
|
|
55
|
+
"no-deprecated",
|
|
56
|
+
"no-duplicate-type-constituents",
|
|
57
|
+
"no-meaningless-void-operator",
|
|
58
|
+
"no-misused-promises",
|
|
59
|
+
"no-misused-spread",
|
|
60
|
+
"no-redundant-type-constituents",
|
|
61
|
+
"no-unnecessary-boolean-literal-compare",
|
|
62
|
+
"no-unnecessary-condition",
|
|
63
|
+
"no-unnecessary-qualifier",
|
|
64
|
+
"no-unnecessary-template-expression",
|
|
65
|
+
"no-unnecessary-type-arguments",
|
|
66
|
+
"no-unnecessary-type-assertion",
|
|
67
|
+
"no-unnecessary-type-conversion",
|
|
68
|
+
"no-unnecessary-type-parameters",
|
|
69
|
+
"no-unsafe-argument",
|
|
70
|
+
"no-unsafe-call",
|
|
71
|
+
"no-unsafe-enum-comparison",
|
|
72
|
+
"no-unsafe-member-access",
|
|
73
|
+
"no-unsafe-type-assertion",
|
|
74
|
+
"no-useless-default-assignment",
|
|
75
|
+
"non-nullable-type-assertion-style",
|
|
76
|
+
"prefer-nullish-coalescing",
|
|
77
|
+
"prefer-optional-chain",
|
|
78
|
+
"prefer-readonly",
|
|
79
|
+
"prefer-readonly-parameter-types",
|
|
80
|
+
"prefer-reduce-type-parameter",
|
|
81
|
+
"prefer-return-this-type",
|
|
82
|
+
"promise-function-async",
|
|
83
|
+
"related-getter-setter-pairs",
|
|
84
|
+
"require-await",
|
|
85
|
+
"restrict-template-expressions",
|
|
86
|
+
"return-await",
|
|
87
|
+
"strict-boolean-expressions",
|
|
88
|
+
"strict-void-return",
|
|
89
|
+
"switch-exhaustiveness-check",
|
|
90
|
+
"unbound-method"
|
|
91
|
+
];
|
|
92
|
+
const typescriptOxlintRules = Object.freeze({
|
|
93
|
+
"await-thenable": awaitThenableRule,
|
|
94
|
+
"no-array-delete": noArrayDeleteRule,
|
|
95
|
+
"no-base-to-string": noBaseToStringRule,
|
|
96
|
+
"no-floating-promises": noFloatingPromisesRule,
|
|
97
|
+
"no-for-in-array": noForInArrayRule,
|
|
98
|
+
"no-implied-eval": noImpliedEvalRule,
|
|
99
|
+
"no-mixed-enums": noMixedEnumsRule,
|
|
100
|
+
"no-unsafe-assignment": noUnsafeAssignmentRule,
|
|
101
|
+
"no-unsafe-return": noUnsafeReturnRule,
|
|
102
|
+
"no-unsafe-unary-minus": noUnsafeUnaryMinusRule,
|
|
103
|
+
"only-throw-error": onlyThrowErrorRule,
|
|
104
|
+
"prefer-find": preferFindRule,
|
|
105
|
+
"prefer-includes": preferIncludesRule,
|
|
106
|
+
"prefer-promise-reject-errors": preferPromiseRejectErrorsRule,
|
|
107
|
+
"prefer-regexp-exec": preferRegexpExecRule,
|
|
108
|
+
"prefer-string-starts-ends-with": preferStringStartsEndsWithRule,
|
|
109
|
+
"require-array-sort-compare": requireArraySortCompareRule,
|
|
110
|
+
"restrict-plus-operands": restrictPlusOperandsRule,
|
|
111
|
+
"use-unknown-in-catch-callback-variable": useUnknownInCatchCallbackVariableRule
|
|
112
|
+
});
|
|
113
|
+
const typescriptOxlintPlugin = definePlugin({
|
|
114
|
+
meta: { name: "oxlint-plugin-typescript-go" },
|
|
115
|
+
rules: typescriptOxlintRules
|
|
116
|
+
});
|
|
117
|
+
//#endregion
|
|
118
|
+
export { implementedNativeRuleNames, pendingNativeRuleNames, rules_exports, typescriptOxlintPlugin, typescriptOxlintRules };
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../ts/rules/index.ts"],"sourcesContent":["import { definePlugin } from \"../plugin\";\n\nimport { awaitThenableRule } from \"./await_thenable\";\nimport { noArrayDeleteRule } from \"./no_array_delete\";\nimport { noBaseToStringRule } from \"./no_base_to_string\";\nimport { noFloatingPromisesRule } from \"./no_floating_promises\";\nimport { noForInArrayRule } from \"./no_for_in_array\";\nimport { noImpliedEvalRule } from \"./no_implied_eval\";\nimport { noMixedEnumsRule } from \"./no_mixed_enums\";\nimport { noUnsafeAssignmentRule } from \"./no_unsafe_assignment\";\nimport { noUnsafeReturnRule } from \"./no_unsafe_return\";\nimport { noUnsafeUnaryMinusRule } from \"./no_unsafe_unary_minus\";\nimport { onlyThrowErrorRule } from \"./only_throw_error\";\nimport { preferFindRule } from \"./prefer_find\";\nimport { preferIncludesRule } from \"./prefer_includes\";\nimport { preferPromiseRejectErrorsRule } from \"./prefer_promise_reject_errors\";\nimport { preferRegexpExecRule } from \"./prefer_regexp_exec\";\nimport { preferStringStartsEndsWithRule } from \"./prefer_string_starts_ends_with\";\nimport { requireArraySortCompareRule } from \"./require_array_sort_compare\";\nimport { restrictPlusOperandsRule } from \"./restrict_plus_operands\";\nimport { useUnknownInCatchCallbackVariableRule } from \"./use_unknown_in_catch_callback_variable\";\n\nexport const implementedNativeRuleNames = [\n \"await-thenable\",\n \"no-array-delete\",\n \"no-base-to-string\",\n \"no-floating-promises\",\n \"no-for-in-array\",\n \"no-implied-eval\",\n \"no-mixed-enums\",\n \"no-unsafe-assignment\",\n \"no-unsafe-return\",\n \"no-unsafe-unary-minus\",\n \"only-throw-error\",\n \"prefer-find\",\n \"prefer-includes\",\n \"prefer-promise-reject-errors\",\n \"prefer-regexp-exec\",\n \"prefer-string-starts-ends-with\",\n \"require-array-sort-compare\",\n \"restrict-plus-operands\",\n \"use-unknown-in-catch-callback-variable\",\n] as const;\n\nexport const pendingNativeRuleNames = [\n \"consistent-return\",\n \"consistent-type-exports\",\n \"dot-notation\",\n \"no-confusing-void-expression\",\n \"no-deprecated\",\n \"no-duplicate-type-constituents\",\n \"no-meaningless-void-operator\",\n \"no-misused-promises\",\n \"no-misused-spread\",\n \"no-redundant-type-constituents\",\n \"no-unnecessary-boolean-literal-compare\",\n \"no-unnecessary-condition\",\n \"no-unnecessary-qualifier\",\n \"no-unnecessary-template-expression\",\n \"no-unnecessary-type-arguments\",\n \"no-unnecessary-type-assertion\",\n \"no-unnecessary-type-conversion\",\n \"no-unnecessary-type-parameters\",\n \"no-unsafe-argument\",\n \"no-unsafe-call\",\n \"no-unsafe-enum-comparison\",\n \"no-unsafe-member-access\",\n \"no-unsafe-type-assertion\",\n \"no-useless-default-assignment\",\n \"non-nullable-type-assertion-style\",\n \"prefer-nullish-coalescing\",\n \"prefer-optional-chain\",\n \"prefer-readonly\",\n \"prefer-readonly-parameter-types\",\n \"prefer-reduce-type-parameter\",\n \"prefer-return-this-type\",\n \"promise-function-async\",\n \"related-getter-setter-pairs\",\n \"require-await\",\n \"restrict-template-expressions\",\n \"return-await\",\n \"strict-boolean-expressions\",\n \"strict-void-return\",\n \"switch-exhaustiveness-check\",\n \"unbound-method\",\n] as const;\n\nexport const typescriptOxlintRules = Object.freeze({\n \"await-thenable\": awaitThenableRule,\n \"no-array-delete\": noArrayDeleteRule,\n \"no-base-to-string\": noBaseToStringRule,\n \"no-floating-promises\": noFloatingPromisesRule,\n \"no-for-in-array\": noForInArrayRule,\n \"no-implied-eval\": noImpliedEvalRule,\n \"no-mixed-enums\": noMixedEnumsRule,\n \"no-unsafe-assignment\": noUnsafeAssignmentRule,\n \"no-unsafe-return\": noUnsafeReturnRule,\n \"no-unsafe-unary-minus\": noUnsafeUnaryMinusRule,\n \"only-throw-error\": onlyThrowErrorRule,\n \"prefer-find\": preferFindRule,\n \"prefer-includes\": preferIncludesRule,\n \"prefer-promise-reject-errors\": preferPromiseRejectErrorsRule,\n \"prefer-regexp-exec\": preferRegexpExecRule,\n \"prefer-string-starts-ends-with\": preferStringStartsEndsWithRule,\n \"require-array-sort-compare\": requireArraySortCompareRule,\n \"restrict-plus-operands\": restrictPlusOperandsRule,\n \"use-unknown-in-catch-callback-variable\": useUnknownInCatchCallbackVariableRule,\n});\n\nexport const typescriptOxlintPlugin = definePlugin({\n meta: { name: \"oxlint-plugin-typescript-go\" },\n rules: typescriptOxlintRules,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,wBAAwB,OAAO,OAAO;CACjD,kBAAkB;CAClB,mBAAmB;CACnB,qBAAqB;CACrB,wBAAwB;CACxB,mBAAmB;CACnB,mBAAmB;CACnB,kBAAkB;CAClB,wBAAwB;CACxB,oBAAoB;CACpB,yBAAyB;CACzB,oBAAoB;CACpB,eAAe;CACf,mBAAmB;CACnB,gCAAgC;CAChC,sBAAsB;CACtB,kCAAkC;CAClC,8BAA8B;CAC9B,0BAA0B;CAC1B,0CAA0C;CAC3C,CAAC;AAEF,MAAa,yBAAyB,aAAa;CACjD,MAAM,EAAE,MAAM,+BAA+B;CAC7C,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/bindings/nodejs/typescript_oxlint/ts/rules/no_array_delete.d.ts
|
|
2
|
+
declare const noArrayDeleteRule: {
|
|
3
|
+
defaultOptions: never[];
|
|
4
|
+
meta: {
|
|
5
|
+
docs: {
|
|
6
|
+
requiresTypeChecking: boolean;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
type: "problem";
|
|
10
|
+
schema: never[];
|
|
11
|
+
};
|
|
12
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { noArrayDeleteRule };
|
|
16
|
+
//# sourceMappingURL=no_array_delete.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createNativeRule } from "./rule_creator.js";
|
|
2
|
+
import { isArrayLikeNode } from "./type_utils.js";
|
|
3
|
+
//#region src/bindings/nodejs/typescript_oxlint/ts/rules/no_array_delete.ts
|
|
4
|
+
const noArrayDeleteRule = createNativeRule("no-array-delete", {
|
|
5
|
+
docs: { description: "Disallow deleting elements from array-like values." },
|
|
6
|
+
hasSuggestions: true,
|
|
7
|
+
messages: {
|
|
8
|
+
unexpected: "Do not delete elements from an array-like value.",
|
|
9
|
+
useSplice: "Use array.splice(index, 1) instead."
|
|
10
|
+
}
|
|
11
|
+
}, (context) => ({ UnaryExpression(node) {
|
|
12
|
+
if (node.operator !== "delete" || node.argument?.type !== "MemberExpression" || !node.argument.computed) return;
|
|
13
|
+
if (isArrayLikeNode(context, node.argument.object)) context.report({
|
|
14
|
+
node,
|
|
15
|
+
messageId: "unexpected",
|
|
16
|
+
suggest: [{
|
|
17
|
+
messageId: "useSplice",
|
|
18
|
+
fix: (fixer) => [
|
|
19
|
+
fixer.removeRange([node.range[0], node.argument.object.range[1]]),
|
|
20
|
+
fixer.replaceTextRange([node.argument.object.range[1], node.argument.property.range[0]], ".splice("),
|
|
21
|
+
fixer.replaceTextRange([node.argument.property.range[1], node.argument.range[1]], ", 1)")
|
|
22
|
+
]
|
|
23
|
+
}]
|
|
24
|
+
});
|
|
25
|
+
} }));
|
|
26
|
+
//#endregion
|
|
27
|
+
export { noArrayDeleteRule };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=no_array_delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no_array_delete.js","names":[],"sources":["../../ts/rules/no_array_delete.ts"],"sourcesContent":["import { createNativeRule } from \"./rule_creator\";\nimport { isArrayLikeNode } from \"./type_utils\";\n\nexport const noArrayDeleteRule = createNativeRule(\n \"no-array-delete\",\n {\n docs: {\n description: \"Disallow deleting elements from array-like values.\",\n },\n hasSuggestions: true,\n messages: {\n unexpected: \"Do not delete elements from an array-like value.\",\n useSplice: \"Use array.splice(index, 1) instead.\",\n },\n },\n (context) => ({\n UnaryExpression(node: any) {\n if (\n node.operator !== \"delete\" ||\n node.argument?.type !== \"MemberExpression\" ||\n !node.argument.computed\n ) {\n return;\n }\n if (isArrayLikeNode(context, node.argument.object)) {\n context.report({\n node,\n messageId: \"unexpected\",\n suggest: [\n {\n messageId: \"useSplice\",\n fix: (fixer: any) => [\n fixer.removeRange([node.range[0], node.argument.object.range[1]]),\n fixer.replaceTextRange(\n [node.argument.object.range[1], node.argument.property.range[0]],\n \".splice(\",\n ),\n fixer.replaceTextRange(\n [node.argument.property.range[1], node.argument.range[1]],\n \", 1)\",\n ),\n ],\n },\n ],\n });\n }\n },\n }),\n);\n"],"mappings":";;;AAGA,MAAa,oBAAoB,iBAC/B,mBACA;CACE,MAAM,EACJ,aAAa,sDACd;CACD,gBAAgB;CAChB,UAAU;EACR,YAAY;EACZ,WAAW;EACZ;CACF,GACA,aAAa,EACZ,gBAAgB,MAAW;AACzB,KACE,KAAK,aAAa,YAClB,KAAK,UAAU,SAAS,sBACxB,CAAC,KAAK,SAAS,SAEf;AAEF,KAAI,gBAAgB,SAAS,KAAK,SAAS,OAAO,CAChD,SAAQ,OAAO;EACb;EACA,WAAW;EACX,SAAS,CACP;GACE,WAAW;GACX,MAAM,UAAe;IACnB,MAAM,YAAY,CAAC,KAAK,MAAM,IAAI,KAAK,SAAS,OAAO,MAAM,GAAG,CAAC;IACjE,MAAM,iBACJ,CAAC,KAAK,SAAS,OAAO,MAAM,IAAI,KAAK,SAAS,SAAS,MAAM,GAAG,EAChE,WACD;IACD,MAAM,iBACJ,CAAC,KAAK,SAAS,SAAS,MAAM,IAAI,KAAK,SAAS,MAAM,GAAG,EACzD,OACD;IACF;GACF,CACF;EACF,CAAC;GAGP,EACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/bindings/nodejs/typescript_oxlint/ts/rules/no_base_to_string.d.ts
|
|
2
|
+
declare const noBaseToStringRule: {
|
|
3
|
+
defaultOptions: never[];
|
|
4
|
+
meta: {
|
|
5
|
+
docs: {
|
|
6
|
+
requiresTypeChecking: boolean;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
type: "problem";
|
|
10
|
+
schema: never[];
|
|
11
|
+
};
|
|
12
|
+
create: (context: any) => Record<string, (node: any) => void>;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { noBaseToStringRule };
|
|
16
|
+
//# sourceMappingURL=no_base_to_string.d.ts.map
|