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

Bug: no-string-throw fixer creates syntax errors #4530

Closed
richardm opened this issue Feb 21, 2019 · 0 comments
Closed

Bug: no-string-throw fixer creates syntax errors #4530

richardm opened this issue Feb 21, 2019 · 0 comments

Comments

@richardm
Copy link

richardm commented Feb 21, 2019

Bug Report

  • TSLint version: 5.12.1
  • TypeScript version: 2.9.2
  • Running TSLint via: Webpack

TypeScript code being linted

throw('component requires CSS height property');

with tslint.json configuration:

{
  "extends": "tslint:recommended"
}

Actual behavior

Should fix or ignore the code

Expected behavior

Generates this invalid code:
thrownew; Error(('component requires CSS height property'));

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