This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit fixes the cases where export statements, string literal type as generic type parameter, and string literals in object literal property assignments were incorrectly flagged. This also fixes a small lint error (specifying a type parameter same as default).
- Loading branch information
Showing
4 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
import { Something } from "some-package" | ||
export { SomethingElse } from "another-package" | ||
|
||
var single = `single`; | ||
var double = `married`; | ||
var singleWithinDouble = `'singleWithinDouble'`; | ||
var doubleWithinSingle = `"doubleWithinSingle"`; | ||
var tabNewlineWithinSingle = `tab\tNewline\nWithinSingle`; | ||
var array: Array<"literal string"> = []; | ||
var hello: `world`; | ||
`escaped'quotemark`; | ||
|
||
// "avoid-template" option is not set. | ||
`foo`; | ||
|
||
const object = { "kebab-case": 3 } | ||
const object: { | ||
"hello-kebab" | ||
: number | ||
"kebab-case": number | ||
"another-kebab": `hello-value` | ||
} = { | ||
"hello-kebab" | ||
: 4 | ||
"kebab-case": 3, | ||
"another-kebab": `hello-value` | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters