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

147
Visualizações
Is there a way to make ESLint understand the new import assertion syntax without adding Babel?

Since the import assertion syntax (e.g. assert {type: 'json'}) is mandatory in the latest Node.js versions, I'm looking for a way to be able to write this new syntax, but I don't want to add Babel just to be able to use the Babel ESLint parser which understands it.

Could this be added by a different ESLint plugin?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As of this writing, the Node.js core code itself is configured to use @babel/eslint-parser specifically for this. It is unlikely that there is an easy and reliable way to do it using a parser shipped with ESLint (at this time). As of this writing, the specification is Stage 3. ESLint has a policy of only adding Stage 4 syntax. Additionally, Node.js docs and a runtime warning make it clear that this is an experimental API. Installing @babel/eslint-parser is the reasonable solution if you're using an experimental API.

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