Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ESLint couldn't find the config "google" to extend from. Please check that the name of the config is correct

I'm trying to deploy a cloud function on firebase. I'm successfully logged into firebase CLI from osx terminal. When I go to deploy it kicks back this error.

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.
like image 348
Medic305 Avatar asked Feb 05 '21 00:02

Medic305


2 Answers

it's because you didn't do the install

Would you like to install them now with npm? · No / Yes

you can try again configuring json .eslint or you can do it this way

npm install eslint-config-google --save-dev
like image 80
mrizkisaputra Avatar answered Sep 29 '22 08:09

mrizkisaputra


As explained here: https://eslint.org/docs/user-guide/configuring/configuration-files#using-a-configuration-from-a-plugin

The extends property value can consist of:

  • plugin:
  • the package name (from which you can omit the prefix, for example, react is short for eslint-plugin-react)
  • /
  • the configuration name (for example, recommended)

Meaning, if you extend your config using the google plugin like this in your .eslintrc.yml:

extends:
  - google

you have to install it doing: npm install eslint-config-google --save-dev

like image 27
LiBa01 Avatar answered Sep 29 '22 08:09

LiBa01