quick-lint/quick-lint-js

30$: report misleading indentation for braceless if/etc.

Opened this issue · 1 comments

if (x)
  if (y)
    z();
else
  w();

quick-lint-js should warn that the else should be indented.

Related: #282

A special case can be

if (x)
  y();
  z();

quick-lint should warn that z() is indented but is not part of the if