ESLint: Configuration to have conditional operators at the start of each line of multiline conditions

Viewed 7

Is there a way to tell ESLint to keep this:

if (
   …
   && … 
   && …
)

Instead of this:

if (
   …
   … &&
   … &&
)

(I like to have the operators at the beginning to be able to comment out different conditions easily)

0 Answers
Related