E0224: TypeScript type annotations are not allowed in JavaScript code
JavaScript variables and function returns cannot be explicitly typed with an annotation:
To fix this error, rename your file to have a .ts
or .tsx
suffix.
Alternatively, use JSDoc to write the annotations:
Introduced in quick-lint-js version 2.6.0.