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

[quotemark] backticks break lookup types / use strict / octal escape sequences / enum members #4692

Closed
ericbf opened this issue May 1, 2019 · 0 comments · Fixed by #4693
Closed

Comments

@ericbf
Copy link
Contributor

ericbf commented May 1, 2019

Bug Report

  • TSLint version: 5.16.0
  • TypeScript version: 3.4.2
  • Running TSLint via: Atom

TypeScript code being linted

"use strict"

enum Hello {
    "world",
    "foo"
}

function hi() {
    "use strict"
}

type hello = typeof obj["key"]
type hello2 = InterfaceName["key"]

const octal = "\110\151"

with tslint.json configuration:

{
    "rules": {
        "quotemark": [true, "backtick"]
    }
}

Actual behavior

All the strings in the example are flagged, even though they must remain as single/double quotes in order to compile or otherwise behave correctly.

Expected behavior

None of the strings in the example are flagged.

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

Successfully merging a pull request may close this issue.

2 participants