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

no-var-keyword doesn't reject export var statements #1256

Closed
giladgray opened this issue May 16, 2016 · 0 comments
Closed

no-var-keyword doesn't reject export var statements #1256

giladgray opened this issue May 16, 2016 · 0 comments

Comments

@giladgray
Copy link

giladgray commented May 16, 2016

Bug Report

  • TSLint version: 3.10.1
  • TypeScript version: 1.8.10
  • Running TSLint via: Node.js API & gulp-tslint

TypeScript code being linted

export var OverlayFactory = React.createFactory(Overlay);

with tslint.json:

"no-var-keyword": true,

Actual behavior

Does not reject var keyword

Expected behavior

Would reject var keyword.

Removing the export keyword (var name = ...) does lint correctly.

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