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

"arrow-parens": [true, "ban-single-arg-parens"] false alarms at (x): string => 'hey' #3360

Closed
zpdDG4gta8XKpMCd opened this issue Oct 20, 2017 · 1 comment

Comments

@zpdDG4gta8XKpMCd
Copy link

Bug Report

  • "tslint": "5.0.0-dev.0",
  • "typescript": "2.6.0-dev.20171005"
  • node ./node_modules/tslint/bin/tslint --project ./scripts/src/tsconfig.json --config ./tslint-standard.json --format msbuild

TypeScript code being linted

// code snippet
const y = (x): string => 'hey';

with tslint.json configuration:

{
    "rules": {
        "arrow-parens": [ true, "ban-single-arg-parens" ]
    }
}

Actual behavior

Parentheses are prohibited around the parameter in this single parameter arrow function

Expected behavior

no error

@ajafff
Copy link
Contributor

ajafff commented Oct 20, 2017

Fixed by #2265 released in 5.0.0

@ajafff ajafff closed this as completed Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants