E0158: unexpected '=>'; expected parameter for arrow function, but got a literal instead
An arrow function has a parameter list followed by =>
followed by a body. It
is a syntax error to write an arrow function with a literal instead of a
parameter list:
To fix this error, write a parameter list before =>
:
Alternatively, write (
)
around the parameter list:
Introduced in quick-lint-js version 0.3.0.