Skip to content

Commit

Permalink
add eslint suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
Feiyang1 committed Aug 12, 2020
1 parent ff5b78e commit 2df6b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/component/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ export class Provider<T extends Name> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.map(service => (service as any).INTERNAL!.delete()),
...services
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.filter(
service =>
'delete' in service &&
this.component &&
// TODO: remove !== 'app' when modular SDKs become official
// People call app.delete() to trigger provider.delete() for all registered components, so
// we don't call delete() on legacy FirebaseApp to avoid getting into a loop.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(this.component.name as any) !== 'app'
) // modular services
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 2df6b21

Please sign in to comment.