eslint-plugin-rxjs-x 0.7.7 → 0.8.1
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/README.md +100 -64
- package/dist/index.d.mts +272 -104
- package/dist/index.d.ts +272 -104
- package/dist/index.js +212 -48
- package/dist/index.mjs +212 -48
- package/package.json +16 -15
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
interface RxjsXRuleDocs {
|
|
4
|
-
description: string;
|
|
5
|
-
recommended?: TSESLint.RuleRecommendation | TSESLint.RuleRecommendationAcrossConfigs<unknown[]>;
|
|
6
|
-
requiresTypeChecking?: boolean;
|
|
7
|
-
}
|
|
2
|
+
import { ESLint, Rule } from 'eslint';
|
|
8
3
|
|
|
9
4
|
interface ChecksVoidReturnOptions {
|
|
10
5
|
arguments?: boolean;
|
|
@@ -15,12 +10,277 @@ interface ChecksVoidReturnOptions {
|
|
|
15
10
|
variables?: boolean;
|
|
16
11
|
}
|
|
17
12
|
|
|
13
|
+
declare const allRules: {
|
|
14
|
+
'ban-observables': TSESLint.RuleModule<"forbidden", readonly Record<string, string | boolean>[], {
|
|
15
|
+
description: "Disallow banned observable creators.";
|
|
16
|
+
}, TSESLint.RuleListener>;
|
|
17
|
+
'ban-operators': TSESLint.RuleModule<"forbidden", readonly Record<string, string | boolean>[], {
|
|
18
|
+
description: "Disallow banned operators.";
|
|
19
|
+
requiresTypeChecking: true;
|
|
20
|
+
}, TSESLint.RuleListener>;
|
|
21
|
+
finnish: TSESLint.RuleModule<"shouldBeFinnish" | "shouldNotBeFinnish", readonly {
|
|
22
|
+
functions?: boolean;
|
|
23
|
+
methods?: boolean;
|
|
24
|
+
names?: Record<string, boolean>;
|
|
25
|
+
parameters?: boolean;
|
|
26
|
+
properties?: boolean;
|
|
27
|
+
strict?: boolean;
|
|
28
|
+
types?: Record<string, boolean>;
|
|
29
|
+
variables?: boolean;
|
|
30
|
+
}[], {
|
|
31
|
+
description: "Enforce Finnish notation.";
|
|
32
|
+
requiresTypeChecking: true;
|
|
33
|
+
}, TSESLint.RuleListener>;
|
|
34
|
+
just: TSESLint.RuleModule<"forbidden", [], {
|
|
35
|
+
description: "Require the use of `just` instead of `of`.";
|
|
36
|
+
}, TSESLint.RuleListener>;
|
|
37
|
+
macro: TSESLint.RuleModule<"macro", [], {
|
|
38
|
+
description: "Require the use of the RxJS Tools Babel macro.";
|
|
39
|
+
}, TSESLint.RuleListener>;
|
|
40
|
+
'no-async-subscribe': TSESLint.RuleModule<"forbidden", [], {
|
|
41
|
+
description: "Disallow passing `async` functions to `subscribe`.";
|
|
42
|
+
recommended: "recommended";
|
|
43
|
+
requiresTypeChecking: true;
|
|
44
|
+
}, TSESLint.RuleListener>;
|
|
45
|
+
'no-compat': TSESLint.RuleModule<"forbidden", [], {
|
|
46
|
+
description: "Disallow the `rxjs-compat` package.";
|
|
47
|
+
}, TSESLint.RuleListener>;
|
|
48
|
+
'no-connectable': TSESLint.RuleModule<"forbidden", [], {
|
|
49
|
+
description: "Disallow operators that return connectable observables.";
|
|
50
|
+
requiresTypeChecking: true;
|
|
51
|
+
}, TSESLint.RuleListener>;
|
|
52
|
+
'no-create': TSESLint.RuleModule<"forbidden", [], {
|
|
53
|
+
description: "Disallow the static `Observable.create` function.";
|
|
54
|
+
recommended: "recommended";
|
|
55
|
+
requiresTypeChecking: true;
|
|
56
|
+
}, TSESLint.RuleListener>;
|
|
57
|
+
'no-cyclic-action': TSESLint.RuleModule<"forbidden", readonly {
|
|
58
|
+
observable?: string;
|
|
59
|
+
}[], {
|
|
60
|
+
description: "Disallow cyclic actions in effects and epics.";
|
|
61
|
+
requiresTypeChecking: true;
|
|
62
|
+
}, TSESLint.RuleListener>;
|
|
63
|
+
'no-explicit-generics': TSESLint.RuleModule<"forbidden", [], {
|
|
64
|
+
description: "Disallow unnecessary explicit generic type arguments.";
|
|
65
|
+
}, TSESLint.RuleListener>;
|
|
66
|
+
'no-exposed-subjects': TSESLint.RuleModule<"forbidden" | "forbiddenAllowProtected", readonly {
|
|
67
|
+
allowProtected?: boolean;
|
|
68
|
+
}[], {
|
|
69
|
+
description: "Disallow public and protected subjects.";
|
|
70
|
+
recommended: "strict";
|
|
71
|
+
requiresTypeChecking: true;
|
|
72
|
+
}, TSESLint.RuleListener>;
|
|
73
|
+
'no-finnish': TSESLint.RuleModule<"forbidden", [], {
|
|
74
|
+
description: "Disallow Finnish notation.";
|
|
75
|
+
requiresTypeChecking: true;
|
|
76
|
+
}, TSESLint.RuleListener>;
|
|
77
|
+
'no-floating-observables': TSESLint.RuleModule<"forbidden" | "forbiddenNoVoid", readonly {
|
|
78
|
+
ignoreVoid?: boolean;
|
|
79
|
+
}[], {
|
|
80
|
+
description: "Require Observables to be handled appropriately.";
|
|
81
|
+
recommended: "strict";
|
|
82
|
+
requiresTypeChecking: true;
|
|
83
|
+
}, TSESLint.RuleListener>;
|
|
84
|
+
'no-ignored-default-value': TSESLint.RuleModule<"forbidden", [], {
|
|
85
|
+
description: "Disallow using `firstValueFrom`, `lastValueFrom`, `first`, and `last` without specifying a default value.";
|
|
86
|
+
recommended: "strict";
|
|
87
|
+
requiresTypeChecking: true;
|
|
88
|
+
}, TSESLint.RuleListener>;
|
|
89
|
+
'no-ignored-error': TSESLint.RuleModule<"forbidden", [], {
|
|
90
|
+
description: "Disallow calling `subscribe` without specifying an error handler.";
|
|
91
|
+
recommended: "strict";
|
|
92
|
+
requiresTypeChecking: true;
|
|
93
|
+
}, TSESLint.RuleListener>;
|
|
94
|
+
'no-ignored-notifier': TSESLint.RuleModule<"forbidden", [], {
|
|
95
|
+
description: "Disallow observables not composed from the `repeatWhen` or `retryWhen` notifier.";
|
|
96
|
+
recommended: "recommended";
|
|
97
|
+
requiresTypeChecking: true;
|
|
98
|
+
}, TSESLint.RuleListener>;
|
|
99
|
+
'no-ignored-replay-buffer': TSESLint.RuleModule<"forbidden", [], {
|
|
100
|
+
description: "Disallow using `ReplaySubject`, `publishReplay` or `shareReplay` without specifying the buffer size.";
|
|
101
|
+
recommended: "recommended";
|
|
102
|
+
}, TSESLint.RuleListener>;
|
|
103
|
+
'no-ignored-subscribe': TSESLint.RuleModule<"forbidden", [], {
|
|
104
|
+
description: "Disallow calling `subscribe` without specifying arguments.";
|
|
105
|
+
requiresTypeChecking: true;
|
|
106
|
+
}, TSESLint.RuleListener>;
|
|
107
|
+
'no-ignored-subscription': TSESLint.RuleModule<"forbidden", readonly {
|
|
108
|
+
completers?: string[];
|
|
109
|
+
postCompleters?: string[];
|
|
110
|
+
}[], {
|
|
111
|
+
description: "Disallow ignoring the subscription returned by `subscribe`.";
|
|
112
|
+
requiresTypeChecking: true;
|
|
113
|
+
}, TSESLint.RuleListener>;
|
|
114
|
+
'no-ignored-takewhile-value': TSESLint.RuleModule<"forbidden", [], {
|
|
115
|
+
description: "Disallow ignoring the value within `takeWhile`.";
|
|
116
|
+
recommended: "recommended";
|
|
117
|
+
}, TSESLint.RuleListener>;
|
|
118
|
+
'no-implicit-any-catch': TSESLint.RuleModule<"explicitAny" | "implicitAny" | "narrowed" | "suggestExplicitUnknown", readonly {
|
|
119
|
+
allowExplicitAny?: boolean;
|
|
120
|
+
}[], {
|
|
121
|
+
description: "Disallow implicit `any` error parameters in `catchError` operators.";
|
|
122
|
+
recommended: {
|
|
123
|
+
recommended: true;
|
|
124
|
+
strict: [{
|
|
125
|
+
allowExplicitAny: boolean;
|
|
126
|
+
}];
|
|
127
|
+
};
|
|
128
|
+
requiresTypeChecking: true;
|
|
129
|
+
}, TSESLint.RuleListener>;
|
|
130
|
+
'no-index': TSESLint.RuleModule<"forbidden", [], {
|
|
131
|
+
description: "Disallow importing index modules.";
|
|
132
|
+
recommended: "recommended";
|
|
133
|
+
}, TSESLint.RuleListener>;
|
|
134
|
+
'no-internal': TSESLint.RuleModule<"forbidden" | "suggest", [], {
|
|
135
|
+
description: "Disallow importing internal modules.";
|
|
136
|
+
recommended: "recommended";
|
|
137
|
+
}, TSESLint.RuleListener>;
|
|
138
|
+
'no-misused-observables': TSESLint.RuleModule<"forbiddenVoidReturnArgument" | "forbiddenVoidReturnAttribute" | "forbiddenVoidReturnInheritedMethod" | "forbiddenVoidReturnProperty" | "forbiddenVoidReturnReturnValue" | "forbiddenVoidReturnVariable" | "forbiddenSpread", readonly {
|
|
139
|
+
checksVoidReturn?: boolean | ChecksVoidReturnOptions;
|
|
140
|
+
checksSpreads?: boolean;
|
|
141
|
+
}[], {
|
|
142
|
+
description: "Disallow Observables in places not designed to handle them.";
|
|
143
|
+
recommended: "strict";
|
|
144
|
+
requiresTypeChecking: true;
|
|
145
|
+
}, TSESLint.RuleListener>;
|
|
146
|
+
'no-nested-subscribe': TSESLint.RuleModule<"forbidden", [], {
|
|
147
|
+
description: "Disallow calling `subscribe` within a `subscribe` callback.";
|
|
148
|
+
recommended: "recommended";
|
|
149
|
+
requiresTypeChecking: true;
|
|
150
|
+
}, TSESLint.RuleListener>;
|
|
151
|
+
'no-redundant-notify': TSESLint.RuleModule<"forbidden", [], {
|
|
152
|
+
description: "Disallow sending redundant notifications from completed or errored observables.";
|
|
153
|
+
recommended: "recommended";
|
|
154
|
+
requiresTypeChecking: true;
|
|
155
|
+
}, TSESLint.RuleListener>;
|
|
156
|
+
'no-sharereplay': TSESLint.RuleModule<"forbidden" | "forbiddenWithoutConfig", readonly {
|
|
157
|
+
allowConfig?: boolean;
|
|
158
|
+
}[], {
|
|
159
|
+
description: "Disallow unsafe `shareReplay` usage.";
|
|
160
|
+
recommended: "recommended";
|
|
161
|
+
}, TSESLint.RuleListener>;
|
|
162
|
+
'no-sharereplay-before-takeuntil': TSESLint.RuleModule<"forbidden", [], {
|
|
163
|
+
description: "Disallow using `shareReplay({ refCount: false })` before `takeUntil`.";
|
|
164
|
+
recommended: "strict";
|
|
165
|
+
}, TSESLint.RuleListener>;
|
|
166
|
+
'no-subclass': TSESLint.RuleModule<"forbidden", [], {
|
|
167
|
+
description: "Disallow subclassing RxJS classes.";
|
|
168
|
+
recommended: "strict";
|
|
169
|
+
requiresTypeChecking: true;
|
|
170
|
+
}, TSESLint.RuleListener>;
|
|
171
|
+
'no-subject-unsubscribe': TSESLint.RuleModule<"forbidden", [], {
|
|
172
|
+
description: "Disallow calling the `unsubscribe` method of subjects.";
|
|
173
|
+
recommended: "recommended";
|
|
174
|
+
requiresTypeChecking: true;
|
|
175
|
+
}, TSESLint.RuleListener>;
|
|
176
|
+
'no-subject-value': TSESLint.RuleModule<"forbidden", [], {
|
|
177
|
+
description: "Disallow accessing the `value` property of a `BehaviorSubject` instance.";
|
|
178
|
+
requiresTypeChecking: true;
|
|
179
|
+
}, TSESLint.RuleListener>;
|
|
180
|
+
'no-subscribe-handlers': TSESLint.RuleModule<"forbidden", [], {
|
|
181
|
+
description: "Disallow passing handlers to `subscribe`.";
|
|
182
|
+
requiresTypeChecking: true;
|
|
183
|
+
}, TSESLint.RuleListener>;
|
|
184
|
+
'no-subscribe-in-pipe': TSESLint.RuleModule<"forbidden", [], {
|
|
185
|
+
description: "Disallow calling of `subscribe` within any RxJS operator inside a `pipe`.";
|
|
186
|
+
recommended: "recommended";
|
|
187
|
+
requiresTypeChecking: true;
|
|
188
|
+
}, TSESLint.RuleListener>;
|
|
189
|
+
'no-tap': TSESLint.RuleModule<"forbidden", [], {
|
|
190
|
+
description: "Disallow the `tap` operator.";
|
|
191
|
+
}, TSESLint.RuleListener>;
|
|
192
|
+
'no-topromise': TSESLint.RuleModule<"forbidden" | "suggestLastValueFromWithDefault" | "suggestLastValueFrom" | "suggestFirstValueFrom", [], {
|
|
193
|
+
description: "Disallow use of the `toPromise` method.";
|
|
194
|
+
recommended: "recommended";
|
|
195
|
+
requiresTypeChecking: true;
|
|
196
|
+
}, TSESLint.RuleListener>;
|
|
197
|
+
'no-unbound-methods': TSESLint.RuleModule<"forbidden", readonly {
|
|
198
|
+
allowTypes?: string[];
|
|
199
|
+
}[], {
|
|
200
|
+
description: "Disallow passing unbound methods.";
|
|
201
|
+
recommended: "recommended";
|
|
202
|
+
requiresTypeChecking: true;
|
|
203
|
+
}, TSESLint.RuleListener>;
|
|
204
|
+
'no-unnecessary-collection': TSESLint.RuleModule<"forbidden", [], {
|
|
205
|
+
description: "Disallow unnecessary usage of collection arguments with single values.";
|
|
206
|
+
recommended: "strict";
|
|
207
|
+
requiresTypeChecking: false;
|
|
208
|
+
}, TSESLint.RuleListener>;
|
|
209
|
+
'no-unsafe-catch': TSESLint.RuleModule<"forbidden", readonly {
|
|
210
|
+
observable?: string;
|
|
211
|
+
}[], {
|
|
212
|
+
description: "Disallow unsafe `catchError` usage in effects and epics.";
|
|
213
|
+
requiresTypeChecking: true;
|
|
214
|
+
}, TSESLint.RuleListener>;
|
|
215
|
+
'no-unsafe-first': TSESLint.RuleModule<"forbidden", readonly {
|
|
216
|
+
observable?: string;
|
|
217
|
+
}[], {
|
|
218
|
+
description: "Disallow unsafe `first`/`take` usage in effects and epics.";
|
|
219
|
+
requiresTypeChecking: true;
|
|
220
|
+
}, TSESLint.RuleListener>;
|
|
221
|
+
'no-unsafe-subject-next': TSESLint.RuleModule<"forbidden", [], {
|
|
222
|
+
description: "Disallow unsafe optional `next` calls.";
|
|
223
|
+
recommended: "recommended";
|
|
224
|
+
requiresTypeChecking: true;
|
|
225
|
+
}, TSESLint.RuleListener>;
|
|
226
|
+
'no-unsafe-switchmap': TSESLint.RuleModule<"forbidden", readonly {
|
|
227
|
+
allow?: string | string[];
|
|
228
|
+
disallow?: string | string[];
|
|
229
|
+
observable?: string;
|
|
230
|
+
}[], {
|
|
231
|
+
description: "Disallow unsafe `switchMap` usage in effects and epics.";
|
|
232
|
+
requiresTypeChecking: true;
|
|
233
|
+
}, TSESLint.RuleListener>;
|
|
234
|
+
'no-unsafe-takeuntil': TSESLint.RuleModule<"forbidden", readonly {
|
|
235
|
+
alias?: string[];
|
|
236
|
+
allow?: string[];
|
|
237
|
+
}[], {
|
|
238
|
+
description: "Disallow applying operators after `takeUntil`.";
|
|
239
|
+
recommended: "recommended";
|
|
240
|
+
requiresTypeChecking: true;
|
|
241
|
+
}, TSESLint.RuleListener>;
|
|
242
|
+
'prefer-observer': TSESLint.RuleModule<"forbidden", readonly {
|
|
243
|
+
allowNext?: boolean;
|
|
244
|
+
}[], {
|
|
245
|
+
description: "Disallow passing separate handlers to `subscribe` and `tap`.";
|
|
246
|
+
recommended: "recommended";
|
|
247
|
+
requiresTypeChecking: true;
|
|
248
|
+
}, TSESLint.RuleListener>;
|
|
249
|
+
'prefer-root-operators': TSESLint.RuleModule<"forbidden" | "suggest" | "forbiddenWithoutFix", [], {
|
|
250
|
+
description: "Disallow importing operators from `rxjs/operators`.";
|
|
251
|
+
recommended: "recommended";
|
|
252
|
+
}, TSESLint.RuleListener>;
|
|
253
|
+
'suffix-subjects': TSESLint.RuleModule<"forbidden", readonly {
|
|
254
|
+
parameters?: boolean;
|
|
255
|
+
properties?: boolean;
|
|
256
|
+
suffix?: string;
|
|
257
|
+
types?: Record<string, boolean>;
|
|
258
|
+
variables?: boolean;
|
|
259
|
+
}[], {
|
|
260
|
+
description: "Enforce the use of a suffix in subject identifiers.";
|
|
261
|
+
requiresTypeChecking: true;
|
|
262
|
+
}, TSESLint.RuleListener>;
|
|
263
|
+
'throw-error': TSESLint.RuleModule<"forbidden", readonly {
|
|
264
|
+
allowThrowingAny?: boolean;
|
|
265
|
+
allowThrowingUnknown?: boolean;
|
|
266
|
+
}[], {
|
|
267
|
+
description: "Enforce passing only `Error` values to `throwError` or `Subject.error`.";
|
|
268
|
+
recommended: {
|
|
269
|
+
recommended: true;
|
|
270
|
+
strict: [{
|
|
271
|
+
allowThrowingAny: boolean;
|
|
272
|
+
allowThrowingUnknown: boolean;
|
|
273
|
+
}];
|
|
274
|
+
};
|
|
275
|
+
requiresTypeChecking: true;
|
|
276
|
+
}, TSESLint.RuleListener>;
|
|
277
|
+
};
|
|
18
278
|
declare const rxjsX: {
|
|
19
279
|
configs: {
|
|
20
280
|
recommended: {
|
|
21
281
|
name: "rxjs-x/recommended";
|
|
22
282
|
plugins: {
|
|
23
|
-
'rxjs-x':
|
|
283
|
+
'rxjs-x': ESLint.Plugin;
|
|
24
284
|
};
|
|
25
285
|
rules: {
|
|
26
286
|
'rxjs-x/no-async-subscribe': "error";
|
|
@@ -48,7 +308,7 @@ declare const rxjsX: {
|
|
|
48
308
|
strict: {
|
|
49
309
|
name: "rxjs-x/strict";
|
|
50
310
|
plugins: {
|
|
51
|
-
'rxjs-x':
|
|
311
|
+
'rxjs-x': ESLint.Plugin;
|
|
52
312
|
};
|
|
53
313
|
rules: {
|
|
54
314
|
'rxjs-x/no-async-subscribe': "error";
|
|
@@ -68,12 +328,14 @@ declare const rxjsX: {
|
|
|
68
328
|
'rxjs-x/no-misused-observables': "error";
|
|
69
329
|
'rxjs-x/no-nested-subscribe': "error";
|
|
70
330
|
'rxjs-x/no-redundant-notify': "error";
|
|
331
|
+
'rxjs-x/no-sharereplay-before-takeuntil': "error";
|
|
71
332
|
'rxjs-x/no-sharereplay': "error";
|
|
72
333
|
'rxjs-x/no-subclass': "error";
|
|
73
334
|
'rxjs-x/no-subject-unsubscribe': "error";
|
|
74
335
|
'rxjs-x/no-subscribe-in-pipe': "error";
|
|
75
336
|
'rxjs-x/no-topromise': "error";
|
|
76
337
|
'rxjs-x/no-unbound-methods': "error";
|
|
338
|
+
'rxjs-x/no-unnecessary-collection': "error";
|
|
77
339
|
'rxjs-x/no-unsafe-subject-next': "error";
|
|
78
340
|
'rxjs-x/no-unsafe-takeuntil': "error";
|
|
79
341
|
'rxjs-x/prefer-observer': "error";
|
|
@@ -89,102 +351,8 @@ declare const rxjsX: {
|
|
|
89
351
|
name: string;
|
|
90
352
|
version: string;
|
|
91
353
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
'ban-operators': TSESLint.RuleModule<"forbidden", readonly Record<string, string | boolean>[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
95
|
-
finnish: TSESLint.RuleModule<"shouldBeFinnish" | "shouldNotBeFinnish", readonly {
|
|
96
|
-
functions?: boolean;
|
|
97
|
-
methods?: boolean;
|
|
98
|
-
names?: Record<string, boolean>;
|
|
99
|
-
parameters?: boolean;
|
|
100
|
-
properties?: boolean;
|
|
101
|
-
strict?: boolean;
|
|
102
|
-
types?: Record<string, boolean>;
|
|
103
|
-
variables?: boolean;
|
|
104
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
105
|
-
just: TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
106
|
-
macro: TSESLint.RuleModule<"macro", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
107
|
-
'no-async-subscribe': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
108
|
-
'no-compat': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
109
|
-
'no-connectable': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
110
|
-
'no-create': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
111
|
-
'no-cyclic-action': TSESLint.RuleModule<"forbidden", readonly {
|
|
112
|
-
observable?: string;
|
|
113
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
114
|
-
'no-explicit-generics': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
115
|
-
'no-exposed-subjects': TSESLint.RuleModule<"forbidden" | "forbiddenAllowProtected", readonly {
|
|
116
|
-
allowProtected?: boolean;
|
|
117
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
118
|
-
'no-finnish': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
119
|
-
'no-floating-observables': TSESLint.RuleModule<"forbidden" | "forbiddenNoVoid", readonly {
|
|
120
|
-
ignoreVoid?: boolean;
|
|
121
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
122
|
-
'no-ignored-default-value': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
123
|
-
'no-ignored-error': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
124
|
-
'no-ignored-notifier': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
125
|
-
'no-ignored-replay-buffer': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
126
|
-
'no-ignored-subscribe': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
127
|
-
'no-ignored-subscription': TSESLint.RuleModule<"forbidden", readonly {
|
|
128
|
-
completers?: string[];
|
|
129
|
-
postCompleters?: string[];
|
|
130
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
131
|
-
'no-ignored-takewhile-value': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
132
|
-
'no-implicit-any-catch': TSESLint.RuleModule<"explicitAny" | "implicitAny" | "narrowed" | "suggestExplicitUnknown", readonly {
|
|
133
|
-
allowExplicitAny?: boolean;
|
|
134
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
135
|
-
'no-index': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
136
|
-
'no-internal': TSESLint.RuleModule<"forbidden" | "suggest", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
137
|
-
'no-misused-observables': TSESLint.RuleModule<"forbiddenVoidReturnArgument" | "forbiddenVoidReturnAttribute" | "forbiddenVoidReturnInheritedMethod" | "forbiddenVoidReturnProperty" | "forbiddenVoidReturnReturnValue" | "forbiddenVoidReturnVariable" | "forbiddenSpread", readonly {
|
|
138
|
-
checksVoidReturn?: boolean | ChecksVoidReturnOptions;
|
|
139
|
-
checksSpreads?: boolean;
|
|
140
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
141
|
-
'no-nested-subscribe': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
142
|
-
'no-redundant-notify': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
143
|
-
'no-sharereplay': TSESLint.RuleModule<"forbidden" | "forbiddenWithoutConfig", readonly {
|
|
144
|
-
allowConfig?: boolean;
|
|
145
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
146
|
-
'no-subclass': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
147
|
-
'no-subject-unsubscribe': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
148
|
-
'no-subject-value': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
149
|
-
'no-subscribe-handlers': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
150
|
-
'no-subscribe-in-pipe': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
151
|
-
'no-tap': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
152
|
-
'no-topromise': TSESLint.RuleModule<"forbidden" | "suggestLastValueFromWithDefault" | "suggestLastValueFrom" | "suggestFirstValueFrom", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
153
|
-
'no-unbound-methods': TSESLint.RuleModule<"forbidden", readonly {
|
|
154
|
-
allowTypes?: string[];
|
|
155
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
156
|
-
'no-unsafe-catch': TSESLint.RuleModule<"forbidden", readonly {
|
|
157
|
-
observable?: string;
|
|
158
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
159
|
-
'no-unsafe-first': TSESLint.RuleModule<"forbidden", readonly {
|
|
160
|
-
observable?: string;
|
|
161
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
162
|
-
'no-unsafe-subject-next': TSESLint.RuleModule<"forbidden", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
163
|
-
'no-unsafe-switchmap': TSESLint.RuleModule<"forbidden", readonly {
|
|
164
|
-
allow?: string | string[];
|
|
165
|
-
disallow?: string | string[];
|
|
166
|
-
observable?: string;
|
|
167
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
168
|
-
'no-unsafe-takeuntil': TSESLint.RuleModule<"forbidden", readonly {
|
|
169
|
-
alias?: string[];
|
|
170
|
-
allow?: string[];
|
|
171
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
172
|
-
'prefer-observer': TSESLint.RuleModule<"forbidden", readonly {
|
|
173
|
-
allowNext?: boolean;
|
|
174
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
175
|
-
'prefer-root-operators': TSESLint.RuleModule<"forbidden" | "suggest" | "forbiddenWithoutFix", [], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
176
|
-
'suffix-subjects': TSESLint.RuleModule<"forbidden", readonly {
|
|
177
|
-
parameters?: boolean;
|
|
178
|
-
properties?: boolean;
|
|
179
|
-
suffix?: string;
|
|
180
|
-
types?: Record<string, boolean>;
|
|
181
|
-
variables?: boolean;
|
|
182
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
183
|
-
'throw-error': TSESLint.RuleModule<"forbidden", readonly {
|
|
184
|
-
allowThrowingAny?: boolean;
|
|
185
|
-
allowThrowingUnknown?: boolean;
|
|
186
|
-
}[], RxjsXRuleDocs, TSESLint.RuleListener>;
|
|
187
|
-
};
|
|
354
|
+
/** Compatibility with `defineConfig` until https://github.com/typescript-eslint/typescript-eslint/issues/11543 is addressed. */
|
|
355
|
+
rules: { [K in keyof typeof allRules]: (typeof allRules)[K] & Rule.RuleModule; };
|
|
188
356
|
};
|
|
189
357
|
|
|
190
358
|
export { rxjsX as default };
|