Med*_*305 22 firebase eslint google-cloud-functions
我正在尝试在 firebase 上部署云功能。我已从 osx 终端成功登录到 firebase CLI。当我去部署时,它会恢复这个错误。
Oops! Something went wrong! :(
ESLint: 7.19.0
ESLint couldn't find the config "google" to extend from. Please check that the name of the config is correct.
Run Code Online (Sandbox Code Playgroud)
小智 31
这是因为你没有安装
\nWould you like to install them now with npm? \xc2\xb7 No / Yes\nRun Code Online (Sandbox Code Playgroud)\n您可以再次尝试配置 json .eslint 或者您可以这样做
\nnpm install eslint-config-google --save-dev\nRun Code Online (Sandbox Code Playgroud)\n
小智 5
如此处所述: https: //eslint.org/docs/user-guide/configuring/configuration-files#using-a-configuration-from-a-plugin
属性
extends值可以包括:
plugin:- 包名称(可以省略前缀,例如 的
react缩写eslint-plugin-react)/- 配置名称(例如,
recommended)
意思是,如果您使用 google 插件扩展您的配置,如下所示.eslintrc.yml:
extends:
- google
Run Code Online (Sandbox Code Playgroud)
你必须安装它:
npm install eslint-config-google --save-dev
| 归档时间: |
|
| 查看次数: |
12645 次 |
| 最近记录: |