0

After running eslint my code seems to have stopped working. Here's an example of what happens

Before eslint:

foo(a, b, c);

After eslint:

foo(
   a,
   b,
   c,
);

After this transformation, when I try to run my code, I get the error:

SyntaxError: Unexpected token )

Basically, it seems that the last line -> the ');' seems to bother javascript because it's after a line break? I can't understand why this would cause any trouble. Any help would be appreciated.

hihipriz
  • 77
  • 1
  • 2
  • 9

0 Answers0