Firebase功能预部署:忽略文件夹

时间:2019-01-07 02:09:56

标签: firebase google-cloud-functions eslint

在我的Firebase Functions文件夹中,我有Lint不喜欢的测试代码:用于集成测试的关键字“ async”和“ await”。

在部署时引起问题。我可以禁用Lint,但我不想这样做。有没有一种方法可以排除测试文件夹以进行预部署?我的firebase.json:

  "functions": {
    "predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint"
    ],
    "source": "functions"
  },

0 个答案:

没有答案
相关问题