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

Getting warning should be (backtick should be backtick) #4402

Closed
bnfrnz opened this issue Dec 19, 2018 · 3 comments
Closed

Getting warning should be (backtick should be backtick) #4402

bnfrnz opened this issue Dec 19, 2018 · 3 comments

Comments

@bnfrnz
Copy link

bnfrnz commented Dec 19, 2018

Bug Report

  • TSLint version: 5.12.0
  • TypeScript version: 2.6.2
  • Running TSLint via: CLI (via ionic-app-scripts)

TypeScript code being linted

this.toastCtrl.present(`Please tick "Yes, I'm sure" to confirm`);

Note that all three ` and " and ' are being used for the string.

with tslint.json configuration:

"quotemark": [true, "single", "avoid-escape", "avoid-template"]

Actual behavior

Getting warning: ` should be `
Note that both of these are backticks. So it asks me to replace a backtick with a backtick. This makes no sense to me. Either I'm missing something here or this is a bug.

Expected behavior

Expected no warning. Never got a warning. This just started appearing I after updated tslint yesterday.

@adidahiya
Copy link
Contributor

I can't reproduce this issue, can you provide a minimal project that demonstrates the bug?

@bnfrnz
Copy link
Author

bnfrnz commented Jan 10, 2019

I tried StackBlitz but can't seem to get tslint to work. Not sure if I'm too thick but as soon as I add tslint the repo stops working. Which other cloud tool is good to share the minimal project?

This is my local vscode:

screen shot 2019-01-10 at 13 35 16

Same warning appears in cli...

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

3 participants