You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{initializeApp}from'npm:firebase-admin/app';import{getFirestore,Firestore}from'firebase-admin/firestore';/** * Connect to the local (emulated) Firestore. * * @return {Firestore} <-- `Firestore` is used here (and more generally, {@link OtherSymbols} could be used) */exportfunctiongetFirestoreDb(){Deno.env.set('FIRESTORE_EMULATOR_HOST','127.0.0.1:8080');initializeApp();returngetFirestore();}
$ deno lint lint-jsdoc.ts
error[no-unused-vars]: `Firestore` is never used
--> /home/dandv/deno-bugs/lint-jsdoc/lint-jsdoc.ts:2:24
|
2 | import { getFirestore, Firestore } from 'firebase-admin/firestore';| ^^^^^^^^^
= hint: If this is intentional, alias it with an underscore like `Firestore as _Firestore`
docs: https://lint.deno.land/rules/no-unused-vars
Found 1 problem
Checked 1 file
Placing a // deno-lint-ignore no-unused-vars comment before the Firestore import removes the linter warning but,
It requires a whole extra line just for that, because there's no deno-lint-ignore-line
Doesn't seem to silence the LSP:
The text was updated successfully, but these errors were encountered:
Version: Deno 2.1.4
Placing a
// deno-lint-ignore no-unused-vars
comment before theFirestore
import removes the linter warning but,deno-lint-ignore-line
The text was updated successfully, but these errors were encountered: