Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

space-before-function-paren: Cannot read property 'end' of undefined #2848

Closed
clebert opened this issue May 30, 2017 · 1 comment
Closed

Comments

@clebert
Copy link

clebert commented May 30, 2017

Bug Report

  • TSLint version: 5.3.2
  • TypeScript version: 2.3.3
  • Running TSLint via: CLI

TypeScript code being linted

export type Fn = (foo: string) => Promise<string>;

export const noWarning: Fn = async (foo) => foo;

export const warning: Fn = async foo => foo;

with tslint.json configuration:

{
  "rules": {
    "space-before-function-paren": [true, {
      "asyncArrow": "always"
    }]
  }
}

Actual behavior

Warning: Cannot read property 'end' of undefined

Expected behavior

No warning (with TSLint 5.2.0 there is no problem)

@adidahiya
Copy link
Contributor

fixed by #2833

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants