my npm-lint is throwing error "missing script: lint"

You need to setup linter and add lint command in your package.json Many linter are available. Assuming you setup eslint https://www.npmjs.com/package/eslint

it would look something like this

// package.json
{ 
  //...
  "scripts": {
    "lint": "eslint.js"
  }
}

Add this script to your package.json file: "lint": "./node_modules/.bin/eslint ."


Should not be removing eslint, instead should try to configure it to make it work to your preferences.

However, if you need to remove it because of time or other constraint

  1. From firebase.json delete "npm --prefix \"$RESOURCE_DIR\" run lint"
  2. From Package.json delete "lint": "eslint .", (should be within the scripts:)
  3. Also from Package.json delete these devDependencies
"eslint": "^7.6.0",
"eslint-config-google": "^0.14.0"`
  1. Delete this file from repo `.eslintrc.js
  2. Then run npm i

then you should be able to run firebase deploy


I got the same problem.

I deleted functions folder, .firebaserc and firebase.json.

Then reinstalled firebase-tools

npm install -g firebase-tools

After firebase init, chose functions, it asked

Do you want to use ESLint to catch probable .....?.

I typed No.

It worked fine for me.