未能将我的应用程序部署到Firebase云功能

时间:2020-05-24 13:28:45

标签: firebase google-cloud-functions

我正在尝试将API部署到Firebase云功能,但是出现以下错误:

14:11  error    Expected '===' and instead saw '=='                      eqeqeq
   18:21  error    Expected '===' and instead saw '=='                      eqeqeq
   27:32  warning  Expected to return a value in arrow function             array-callback-return
   38:40  warning  Expected to return a value in arrow function             array-callback-return
   52:45  error    Expected error to be handled                             handle-callback-err
   52:45  warning  Unexpected function expression                           prefer-arrow-callback
   59:66  warning  Expected to return a value at the end of arrow function  consistent-return
   74:58  warning  Expected to return a value at the end of arrow function  consistent-return
   98:21  error    Expected error to be handled                             handle-callback-err
  100:69  error    Expected '===' and instead saw '=='                      eqeqeq
  191:86  warning  Expected to return a value at the end of arrow function  consistent-return
  233:37  error    Expected '===' and instead saw '=='                      eqeqeq
  250:45  warning  Expected to return a value at the end of arrow function  consistent-return
  285:5   error    Expected catch() or return                               promise/catch-or-return
  285:32  warning  Expected to return a value at the end of arrow function  consistent-return
  289:9   error    Each then() should return a value or throw               promise/always-return
  298:17  error    Unexpected lexical declaration in case block             no-case-declarations
  322:26  error    Expected '===' and instead saw '=='   
edeclare
  497:78  warning  Expected to return a value at the end of arrow function  consistent-return
  498:27  error    Expected '===' and instead saw '=='                      eqeqeq
  513:40  warning  Expected to return a value at the end of arrow function  consistent-return
  523:43  warning  Expected to return a value at the end of arrow function  consistent-return
  587:45  warning  Expected to return a value at the end of arrow function  consistent-return
  691:26  error    Expected '===' and instead saw '=='                      eqeqeq
  698:37  error    Expected '===' and instead saw '=='                      eqeqeq
  698:60  error    Expected '===' and instead saw '=='                      eqeqeq
  701:32  error    Expected '===' and instead saw '=='                      eqeqeq
  708:37  error    Expected '===' and instead saw '=='                      eqeqeq
  708:60  error    Expected '===' and instead saw '=='                      eqeqeq
  720:64  warning  Expected to return a value at the end of arrow function  consistent-return
  721:19  error    Use '===' to compare with null                           no-eq-null
  721:23  error    Expected '===' and instead saw '=='                      eqeqeq
  738:45  warning  Expected to return a value at the end of arrow function  consistent-return
  772:39  warning  Expected to return a value at the end of function        consistent-return
  772:39  warning  Unexpected function expression                           prefer-arrow-callback
  787:34  warning  Expected to return a value at the end of function        consistent-return
  787:34  warning  Unexpected function expression                           prefer-arrow-callback

✖ 65 problems (47 errors, 18 warnings)
  0 errors and 3 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!     /Users/XXXX/.npm/_logs/2020-05-24T13_19_16_874Z-debug.log

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

我不知道如何解决它。

有什么想法吗?

0 个答案:

没有答案