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