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

241
Views
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 answers
Answer question

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 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!