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

242
Visualizações
How to break lines of a html tag with attributes (ESLint rules)

Due to ESLint rules I am trying to break lines of a html tag with attributes (and ternary) but I can't get it working. Does anyone know how to do it? What is the correct way to break these lines?

Edit: With mouse over it says "Expected indentation of 16 space characters but found 14.eslintreact/jsx-indent-props" , but when I put on correct identation , it says "Expected indentation of 14 spaces but found 16.eslintindent".

        {
          cardTrunfo
            ? <div
              className="card__super"
              data-type="card"
              data-color="black"
              data-code="0001"
            >
              Card Name
            </div>
            : ''
        }

enter image description here

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

0

That is because you probabbly have empty spaces on the previus line...
Put evrything back together on a single line and format it once again.

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