Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 带firebase函数和idea的eslint问题_Javascript_Firebase_Intellij Idea_Google Cloud Functions_Eslint - Fatal编程技术网

Javascript 带firebase函数和idea的eslint问题

Javascript 带firebase函数和idea的eslint问题,javascript,firebase,intellij-idea,google-cloud-functions,eslint,Javascript,Firebase,Intellij Idea,Google Cloud Functions,Eslint,我重新安装了Intellij Idea并打开了我的vuejs/firebase项目。我可以在IDE编辑器中看到eslint通知,但在任何js文件的functions目录中我看不到任何通知。但是,当我尝试部署firebase时,我发现prettier中有很多错误 正在运行的命令:npm--前缀“$RESOURCE\u DIR”run lint 函数@lint/home/madcap/Projects/Alex/functions 埃斯林特 我试图通过删除文件夹重新安装firebase函数,并通过覆

我重新安装了Intellij Idea并打开了我的vuejs/firebase项目。我可以在IDE编辑器中看到eslint通知,但在任何js文件的functions目录中我看不到任何通知。但是,当我尝试部署firebase时,我发现prettier中有很多错误

正在运行的命令:npm--前缀“$RESOURCE\u DIR”run lint

函数@lint/home/madcap/Projects/Alex/functions 埃斯林特

我试图通过删除文件夹重新安装firebase函数,并通过覆盖所有内容(firebase init函数)完全重新安装它

我有一个自动创建的.eslintrc.json文件

我在package.json的开发依赖项中有“eslint”:“^5.12.0”


我只是不知道发生了什么

intellij eslint配置未正确配置为使用项目的eslint文件。因此,它是使用默认的一个具有不同设置的索引空间

这里有官方的指南:


您的eslintrc中有什么?听起来您需要让eslint忽略node_modules目录。它是在“firebase init functions”时创建的标准eslintrc.json。这是否回答了您的问题?没有帮助。我尝试在没有eslint选项的情况下重新安装函数,但在部署时遇到以下错误:缺少脚本:lint这是因为在package.json文件中没有lint脚本。你需要在那里添加ir<代码>{/…“脚本”:{“lint”:“eslint.js”}}
/home/madcap/Projects/Alex/functions/index.js
  10:3   error  Delete `··`                                 prettier/prettier
  12:1   error  Delete `··`                                 prettier/prettier
  13:3   error  Delete `··`                                 prettier/prettier
  14:1   error  Replace `····` with `··`                    prettier/prettier
  15:1   error  Delete `··`                                 prettier/prettier
  16:1   error  Replace `····` with `··`                    prettier/prettier
  17:1   error  Delete `··`                                 prettier/prettier
  19:3   error  Delete `··`                                 prettier/prettier
  20:5   error  Delete `····`                               prettier/prettier
  21:1   error  Replace `············` with `······`        prettier/prettier
  22:1   error  Replace `········` with `····`              prettier/prettier
  23:1   error  Delete `····`                               prettier/prettier
  25:5   error  Delete `····`                               prettier/prettier
  26:1   error  Replace `············` with `······`        prettier/prettier
  27:1   error  Delete `········`                           prettier/prettier
  28:1   error  Replace `················` with `········`  prettier/prettier
  29:1   error  Replace `················` with `········`  prettier/prettier
  30:7   error  Delete `······`                             prettier/prettier
  31:5   error  Delete `····`                               prettier/prettier
  33:1   error  Replace `········` with `····`              prettier/prettier
  35:5   error  Delete `····`                               prettier/prettier
  36:1   error  Replace `········` with `····`              prettier/prettier
  37:1   error  Replace `············` with `······`        prettier/prettier
  38:7   error  Delete `······`                             prettier/prettier
  39:1   error  Replace `················` with `········`  prettier/prettier
  40:1   error  Delete `··········`                         prettier/prettier
  41:11  error  Delete `··········`                         prettier/prettier
  42:1   error  Replace `················` with `········`  prettier/prettier
  43:1   error  Replace `············` with `······`        prettier/prettier
  44:1   error  Replace `········` with `····`              prettier/prettier
  46:1   error  Delete `····`                               prettier/prettier
  48:5   error  Delete `····`                               prettier/prettier
  49:3   error  Delete `··`                                 prettier/prettier
  51:1   error  Replace `····` with `··`                    prettier/prettier
  52:1   error  Replace `········` with `····`              prettier/prettier
  53:1   error  Replace `············` with `······`        prettier/prettier
  54:1   error  Replace `············` with `······`        prettier/prettier
  55:7   error  Delete `······`                             prettier/prettier
  56:1   error  Delete `····`                               prettier/prettier
  57:5   error  Delete `····`                               prettier/prettier
  61:1   error  Delete `⏎··`                                prettier/prettier
  63:3   error  Delete `··`                                 prettier/prettier
  65:3   error  Delete `··`                                 prettier/prettier
  66:1   error  Delete `··`                                 prettier/prettier
  68:3   error  Delete `··`                                 prettier/prettier
  70:1   error  Delete `··`                                 prettier/prettier
  71:3   error  Delete `··`                                 prettier/prettier
  73:1   error  Replace `····` with `··`                    prettier/prettier
  74:1   error  Delete `··`                                 prettier/prettier
  76:3   error  Delete `··`                                 prettier/prettier
  77:2   error  Insert `⏎`                                  prettier/prettier

✖ 51 problems (51 errors, 0 warnings)
  51 errors and 0 warnings potentially fixable with the `--fix` option.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ lint: `eslint .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/madcap/.npm/_logs/2020-02-18T02_50_25_483Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code1