E0198: unexpected statement before first switch case, expected 'case' or 'default'
switch
statements contain zero or more labelled statements. It is a syntax
error to write a statement inside a switch
's body before the first label:
To fix this error, write a default
or case
label at the beginning of the
switch
:
Alternatively, replace switch
with if
:
Introduced in quick-lint-js version 2.3.0.
Documentation for other errors