sheerun / prettier-standard

Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠)
MIT License
868 stars 44 forks source link

Can't resolve typescript type #107

Closed sKawashima closed 4 years ago

sKawashima commented 4 years ago

In this code

  const canvas = <HTMLCanvasElement>document.getElementById('main')

RUN prettier-standard --lint

✖ prettier-standard found some errors. Please fix them and try committing again.
src/app.ts 663ms

/Users/skawashima/works/panepon/src/game/Main/index.ts
3:37  error  Parsing error: Unterminated JSX contents

> 3 |   const canvas = <HTMLCanvasElement>document.getElementById('main')
sheerun commented 4 years ago

This is not correct syntax. It whould be <HTMLCanvasElement>{document.getElementById('main')