Closed cyw3 closed 5 years ago
Were you able to solve this @cyw3?
Ran into same issue with code
declare class Foo {
constructor(params: IFooParams);
public setUserID(userId: string): void;
public reachGoal(goal: string, object);
}
and debug info
eslint:linter An error occurred while traversing +20ms
eslint:linter Filename: /Users/infctr/Projects/itv-smarttv/app/modules/analytics/service/ymTransmitter/defines.d.ts +0ms
eslint:linter Parser Options: { ecmaFeatures:
{ globalReturn: false,
generators: false,
objectLiteralDuplicateProperties: false,
jsx: true },
ecmaVersion: 9,
sourceType: 'module' } +0ms
eslint:linter Parser Path: typescript-eslint-parser +0ms
eslint:linter Settings: { 'import/resolver': { node: { extensions: [Array], moduleDirectory: [Array] } },
'import/ignore': [ 'node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$' ],
react: { pragma: 'React', version: '16.0' },
propWrapperFunctions: [ 'forbidExtraProps', 'exact', 'Object.freeze' ] } +0ms
Cannot read property 'body' of null
Closing as a duplicate of #485. Thank you.
What version of TypeScript are you using? typescript@2.9.2
What version of
typescript-eslint-parser
are you using? typescript-eslint-parser@16.0.1What code were you trying to parse?
What did you expect to happen? eslint can work well.
What happened? but eslint crash: