sheerun / prettier-standard

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

typescript parser used by lib is out of date and incompatible w/ language features #75

Closed cdaringe closed 5 years ago

cdaringe commented 5 years ago

problem

prettier-standard cannot parse valid typescript

example

prettier-standard [ERROR]: There was an error formatting "/path/to/src/index.ts":
  SyntaxError: ';' expected. (28:27)
    26 | }
    27 |
  > 28 | type FirstArgument<T> = T extends (arg1: infer U, ...args: any[]) =>any ? U : any;

discussion

my guess is that we just need to roll prettier forward

sheerun commented 5 years ago

prettier-standard 9.0.0 has been released that fixes this