This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Parsing error on new
operator without parentheses #60
Closed
Description
Whenever a TypeScript contains a new
operator without parentheses, the following error is thrown by eslint
:
Parsing error: Cannot read property 'map' of undefined
According to the TypeScript spec, however, this syntax is valid.
Context:
eslint@3.3.1
typescript-eslint-parser@0.1.2
.eslintrc.yml:
extends: eslint:recommended
parser: typescript-eslint-parser
test.ts:
function X () { }
new X;