eslint / typescript-eslint-parser

An ESLint custom parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code.
Other
915 stars 92 forks source link

No support for lookup types #559

Closed smashercosmo closed 5 years ago

smashercosmo commented 5 years ago

What version of TypeScript are you using? v3.1.6

What version of typescript-eslint-parser are you using? v21.0.1

What code were you trying to parse?

type Hello = {
  hi: string,
}

type Foo = {
  bar: Hello['hi'],
}

What did you expect to happen? No errors

What happened?

SyntaxError: Unexpected token, expected "]"
smashercosmo commented 5 years ago

Seems like it's not a problem with typescript-eslint-parser, but with Babel.