@@ -59,7 +59,7 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
59
59
catchError((error: unknown) => console.error(error))
60
60
);
61
61
` ,
62
- options : [ { allowExplicitAny : false } ] ,
62
+ options : [ { allowExplicitAny : true } ] ,
63
63
} ,
64
64
{
65
65
code : stripIndent `
@@ -71,7 +71,7 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
71
71
catchError(function (error: unknown) { console.error(error); })
72
72
);
73
73
` ,
74
- options : [ { allowExplicitAny : false } ] ,
74
+ options : [ { allowExplicitAny : true } ] ,
75
75
} ,
76
76
{
77
77
code : stripIndent `
@@ -83,7 +83,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
83
83
catchError((error: any) => console.error(error))
84
84
);
85
85
` ,
86
- options : [ { allowExplicitAny : true } ] ,
87
86
} ,
88
87
{
89
88
code : stripIndent `
@@ -95,7 +94,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
95
94
catchError(function (error: any) { console.error(error); })
96
95
);
97
96
` ,
98
- options : [ { allowExplicitAny : true } ] ,
99
97
} ,
100
98
{
101
99
code : stripIndent `
@@ -110,15 +108,14 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
110
108
} ,
111
109
{
112
110
code : stripIndent `
113
- // subscribe; arrow; explicit any
111
+ // subscribe; arrow; explicit any; default option
114
112
import { throwError } from "rxjs";
115
113
116
114
throwError("Kaboom!").subscribe(
117
115
undefined,
118
116
(error: any) => console.error(error)
119
117
);
120
118
` ,
121
- options : [ { allowExplicitAny : true } ] ,
122
119
} ,
123
120
{
124
121
code : stripIndent `
@@ -132,14 +129,13 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
132
129
} ,
133
130
{
134
131
code : stripIndent `
135
- // subscribe observer; arrow; explicit any
132
+ // subscribe observer; arrow; explicit any; default option
136
133
import { throwError } from "rxjs";
137
134
138
135
throwError("Kaboom!").subscribe({
139
136
error: (error: any) => console.error(error)
140
137
});
141
138
` ,
142
- options : [ { allowExplicitAny : true } ] ,
143
139
} ,
144
140
{
145
141
code : stripIndent `
@@ -155,7 +151,7 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
155
151
} ,
156
152
{
157
153
code : stripIndent `
158
- // tap; arrow; explicit any
154
+ // tap; arrow; explicit any; default option
159
155
import { throwError } from "rxjs";
160
156
import { tap } from "rxjs/operators";
161
157
@@ -164,7 +160,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
164
160
(error: any) => console.error(error)
165
161
));
166
162
` ,
167
- options : [ { allowExplicitAny : true } ] ,
168
163
} ,
169
164
{
170
165
code : stripIndent `
@@ -179,15 +174,14 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
179
174
} ,
180
175
{
181
176
code : stripIndent `
182
- // tap observer; arrow; explicit any
177
+ // tap observer; arrow; explicit any; default option
183
178
import { throwError } from "rxjs";
184
179
import { tap } from "rxjs/operators";
185
180
186
181
throwError("Kaboom!").pipe(tap({
187
182
error: (error: any) => console.error(error)
188
183
}));
189
184
` ,
190
- options : [ { allowExplicitAny : true } ] ,
191
185
} ,
192
186
{
193
187
code : stripIndent `
@@ -315,80 +309,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
315
309
] ,
316
310
} ,
317
311
) ,
318
- fromFixture (
319
- stripIndent `
320
- // arrow; explicit any; default option
321
- import { throwError } from "rxjs";
322
- import { catchError } from "rxjs/operators";
323
-
324
- throwError("Kaboom!").pipe(
325
- catchError((error: any) => console.error(error))
326
- ~~~~~~~~~~ [explicitAny suggest]
327
- );
328
- ` ,
329
- {
330
- output : stripIndent `
331
- // arrow; explicit any; default option
332
- import { throwError } from "rxjs";
333
- import { catchError } from "rxjs/operators";
334
-
335
- throwError("Kaboom!").pipe(
336
- catchError((error: unknown) => console.error(error))
337
- );
338
- ` ,
339
- suggestions : [
340
- {
341
- messageId : 'suggestExplicitUnknown' ,
342
- output : stripIndent `
343
- // arrow; explicit any; default option
344
- import { throwError } from "rxjs";
345
- import { catchError } from "rxjs/operators";
346
-
347
- throwError("Kaboom!").pipe(
348
- catchError((error: unknown) => console.error(error))
349
- );
350
- ` ,
351
- } ,
352
- ] ,
353
- } ,
354
- ) ,
355
- fromFixture (
356
- stripIndent `
357
- // non-arrow; explicit any; default option
358
- import { throwError } from "rxjs";
359
- import { catchError } from "rxjs/operators";
360
-
361
- throwError("Kaboom!").pipe(
362
- catchError(function (error: any) { console.error(error); })
363
- ~~~~~~~~~~ [explicitAny suggest]
364
- );
365
- ` ,
366
- {
367
- output : stripIndent `
368
- // non-arrow; explicit any; default option
369
- import { throwError } from "rxjs";
370
- import { catchError } from "rxjs/operators";
371
-
372
- throwError("Kaboom!").pipe(
373
- catchError(function (error: unknown) { console.error(error); })
374
- );
375
- ` ,
376
- suggestions : [
377
- {
378
- messageId : 'suggestExplicitUnknown' ,
379
- output : stripIndent `
380
- // non-arrow; explicit any; default option
381
- import { throwError } from "rxjs";
382
- import { catchError } from "rxjs/operators";
383
-
384
- throwError("Kaboom!").pipe(
385
- catchError(function (error: unknown) { console.error(error); })
386
- );
387
- ` ,
388
- } ,
389
- ] ,
390
- } ,
391
- ) ,
392
312
fromFixture (
393
313
stripIndent `
394
314
// arrow; explicit any; explicit option
@@ -595,43 +515,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
595
515
] ,
596
516
} ,
597
517
) ,
598
- fromFixture (
599
- stripIndent `
600
- // subscribe; arrow; explicit any; default option
601
- import { throwError } from "rxjs";
602
-
603
- throwError("Kaboom!").subscribe(
604
- undefined,
605
- (error: any) => console.error(error)
606
- ~~~~~~~~~~ [explicitAny suggest]
607
- );
608
- ` ,
609
- {
610
- output : stripIndent `
611
- // subscribe; arrow; explicit any; default option
612
- import { throwError } from "rxjs";
613
-
614
- throwError("Kaboom!").subscribe(
615
- undefined,
616
- (error: unknown) => console.error(error)
617
- );
618
- ` ,
619
- suggestions : [
620
- {
621
- messageId : 'suggestExplicitUnknown' ,
622
- output : stripIndent `
623
- // subscribe; arrow; explicit any; default option
624
- import { throwError } from "rxjs";
625
-
626
- throwError("Kaboom!").subscribe(
627
- undefined,
628
- (error: unknown) => console.error(error)
629
- );
630
- ` ,
631
- } ,
632
- ] ,
633
- } ,
634
- ) ,
635
518
fromFixture (
636
519
stripIndent `
637
520
// subscribe; arrow; explicit any; explicit option
@@ -766,40 +649,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
766
649
] ,
767
650
} ,
768
651
) ,
769
- fromFixture (
770
- stripIndent `
771
- // subscribe observer; arrow; explicit any; default option
772
- import { throwError } from "rxjs";
773
-
774
- throwError("Kaboom!").subscribe({
775
- error: (error: any) => console.error(error)
776
- ~~~~~~~~~~ [explicitAny suggest]
777
- });
778
- ` ,
779
- {
780
- output : stripIndent `
781
- // subscribe observer; arrow; explicit any; default option
782
- import { throwError } from "rxjs";
783
-
784
- throwError("Kaboom!").subscribe({
785
- error: (error: unknown) => console.error(error)
786
- });
787
- ` ,
788
- suggestions : [
789
- {
790
- messageId : 'suggestExplicitUnknown' ,
791
- output : stripIndent `
792
- // subscribe observer; arrow; explicit any; default option
793
- import { throwError } from "rxjs";
794
-
795
- throwError("Kaboom!").subscribe({
796
- error: (error: unknown) => console.error(error)
797
- });
798
- ` ,
799
- } ,
800
- ] ,
801
- } ,
802
- ) ,
803
652
fromFixture (
804
653
stripIndent `
805
654
// subscribe observer; arrow; explicit any; explicit option
@@ -941,46 +790,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
941
790
] ,
942
791
} ,
943
792
) ,
944
- fromFixture (
945
- stripIndent `
946
- // tap; arrow; explicit any; default option
947
- import { throwError } from "rxjs";
948
- import { tap } from "rxjs/operators";
949
-
950
- throwError("Kaboom!").pipe(tap(
951
- undefined,
952
- (error: any) => console.error(error)
953
- ~~~~~~~~~~ [explicitAny suggest]
954
- ));
955
- ` ,
956
- {
957
- output : stripIndent `
958
- // tap; arrow; explicit any; default option
959
- import { throwError } from "rxjs";
960
- import { tap } from "rxjs/operators";
961
-
962
- throwError("Kaboom!").pipe(tap(
963
- undefined,
964
- (error: unknown) => console.error(error)
965
- ));
966
- ` ,
967
- suggestions : [
968
- {
969
- messageId : 'suggestExplicitUnknown' ,
970
- output : stripIndent `
971
- // tap; arrow; explicit any; default option
972
- import { throwError } from "rxjs";
973
- import { tap } from "rxjs/operators";
974
-
975
- throwError("Kaboom!").pipe(tap(
976
- undefined,
977
- (error: unknown) => console.error(error)
978
- ));
979
- ` ,
980
- } ,
981
- ] ,
982
- } ,
983
- ) ,
984
793
fromFixture (
985
794
stripIndent `
986
795
// tap; arrow; explicit any; explicit option
@@ -1126,43 +935,6 @@ ruleTester({ types: true }).run('no-implicit-any-catch', noImplicitAnyCatchRule,
1126
935
] ,
1127
936
} ,
1128
937
) ,
1129
- fromFixture (
1130
- stripIndent `
1131
- // tap observer; arrow; explicit any; default option
1132
- import { throwError } from "rxjs";
1133
- import { tap } from "rxjs/operators";
1134
-
1135
- throwError("Kaboom!").pipe(tap({
1136
- error: (error: any) => console.error(error)
1137
- ~~~~~~~~~~ [explicitAny suggest]
1138
- }));
1139
- ` ,
1140
- {
1141
- output : stripIndent `
1142
- // tap observer; arrow; explicit any; default option
1143
- import { throwError } from "rxjs";
1144
- import { tap } from "rxjs/operators";
1145
-
1146
- throwError("Kaboom!").pipe(tap({
1147
- error: (error: unknown) => console.error(error)
1148
- }));
1149
- ` ,
1150
- suggestions : [
1151
- {
1152
- messageId : 'suggestExplicitUnknown' ,
1153
- output : stripIndent `
1154
- // tap observer; arrow; explicit any; default option
1155
- import { throwError } from "rxjs";
1156
- import { tap } from "rxjs/operators";
1157
-
1158
- throwError("Kaboom!").pipe(tap({
1159
- error: (error: unknown) => console.error(error)
1160
- }));
1161
- ` ,
1162
- } ,
1163
- ] ,
1164
- } ,
1165
- ) ,
1166
938
fromFixture (
1167
939
stripIndent `
1168
940
// tap observer; arrow; explicit any; explicit option
0 commit comments