出现解析错误,找不到 eslint 文件

getting a parse error and cannot find eslint file

我意识到您无法使用 FCM v1 API 直接从客户端发送消息,所以现在我正在使用 node.js 而且我不想部署此云功能,但我收到如下解析错误:

这是我的功能:

const functions = require("firebase-functions");
const admin = require("firebase-admin");
const { event } = require("firebase-functions/lib/providers/analytics");
admin.initializeApp(functions.config().firebase);

exports.sendNotificationsToTopic = 
functions.firestore.document("school_users/{uid}/events/{docID}").onWrite(async (event) => {
let docID = event.after.id;
let schoolID = event.after.get("school_id")
let title = "New Event!!"
let notificationBody = "A new event has been added to the dashboard!!"
var message = {
  notification: {
      title: title,
      body: notificationBody,
  },
  topic: schoolID,

};

let response = await admin.messaging().sendToTopic(message);
console.log(response);
});

我做了一些研究,发现人们在他们的项目中遇到了类似的错误,答案是更新 eslint 的版本,以便它采用 shorthand 语法,我不知道在哪里找到eslint文件更新版本。有人知道我在哪里可以找到这个文件吗?

我需要做的就是显示 functions 目录中的隐藏文件。一旦我看到 .eslintrc.js 文件,我只是从“eslint”键中删除了一部分值,并且该函数部署得非常好。