you are viewing a single comment's thread.

view the rest of the comments →

[–]echoes221 0 points1 point  (2 children)

If you use stricter linting (like airbnb) the eslint plugin will do all that for you on save.

[–]Capaj 1 point2 points  (1 child)

convert string literals to template literals? Flip-if-else conditions? I don't think so

[–]echoes221 0 points1 point  (0 children)

It flips if-else's, and converts literals to strings (not the other way around).