Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

141
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda