Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Firebase Functions predeploy parsing error run lint

When i try to deploy my Firebase Functions it gets an parse error. I am using cmd on Windows and i am coding in JavaScript. A couple of days ago i deployed my Functions on Mac and it worked, today i wanted to do the same thing on windows. After i tried it on Windows and it didn't worked, i tried it on mac again and it did not worked eather, even if it worked before.

I tried to change the firebase.json from "predeploy":[ "npm --prefix "$RESOURCE_DIR" run lint" ] to: "predeploy": [ "npm --prefix "%RESOURCE_DIR%" run lint" ]

but this was alos not working.

Can anybody help me out here? Thanks in advance :)

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to update your lint file to account for the new ECMA script. Add the ecmaVersion key-value pair to your eslintrc.js file.

module.exports = {
  root: true,
  env: {
    es6: true,
    node: true,
  },
  parserOptions: {
    "ecmaVersion": 2020, // add this
  },
  extends: [
    "eslint:recommended",
    "google",
  ]
};
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!