部署 firebase 函数的非法选项

Man*_*uga 9 firebase gitlab-ci tslint gitlab-ci-runner google-cloud-functions

我在 GitLab 中部署 firebase 函数时遇到错误。我知道 package.json 和 firebase.json 必须有 Unix EOL,我用 Notepad++ 对其进行了转换,但这并没有解决任何问题。可能是什么问题呢?

i  deploying storage, firestore, functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
> lint
> tslint -p tsconfig.json
/bin/sh: 0: Illegal option --
Error: functions predeploy error: Command terminated with non-zero exit code 2
Run Code Online (Sandbox Code Playgroud)

包.json

{
  "name": "functions",
  "scripts": {
    "test": "mocha --timeout 15000 -r ts-node/register './test/*/*.ts' --exit",
    "lint": "tslint -p tsconfig.json",
    "build": "tsc",
    "build:watch": "tsc --watch --preserveWatchOutput",
    "serve": "npm run build:watch | firebase emulators:start --only functions",
    "serve:all": "npm run build:watch | firebase emulators:start --import ./fs-export --inspect-functions",
    "shell": "npm run build && firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "engines": {
    "node": "10"
  },
  "main": "lib/index.js",
  "dependencies": {
    "firebase": "^7.16.0",
    "firebase-admin": "^8.10.0",
    "firebase-functions": "^3.6.1",
    other deps...
  },
  "devDependencies": {
    "tslint": "^5.20.1",
    "typescript": "^3.8.0",
    "typings": "^2.1.1"
    other deps...
  },
  "private": true
}
Run Code Online (Sandbox Code Playgroud)