Medic305
Medic305

Reputation: 353

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.

Upvotes: 25

Views: 14480

Answers (6)

mrizkisaputra
mrizkisaputra

Reputation: 350

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

Upvotes: 35

LiBa01
LiBa01

Reputation: 101

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

Upvotes: 6

Afaq Ahmed Khan
Afaq Ahmed Khan

Reputation: 2302

I had this issue and resolved mine running this:

npm install eslint-config-eslint --save-dev

Most likely you didn't have eslint-config-google installed. Once installed try running ESLint again.

Upvotes: 0

roshni batra
roshni batra

Reputation: 39

I had the same issue, While trying to debug my error I happen to make some changes in the below code, reverting it back to this way removed the error

Please check in your .eslintrc.js ,if the below code is there or not

extends: ["eslint:recommended", "google"],

Upvotes: 1

Mariano J. Ponce
Mariano J. Ponce

Reputation: 172

After making sure that ESLint is installed, you just need to initialize it by running:

eslint --init

Upvotes: 0

Stefan Neacsu
Stefan Neacsu

Reputation: 693

Most likely you do not have eslint installed so try to install it by running this command:

npm install eslint-config-eslint --save-dev

Upvotes: 0

Related Questions