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 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[quotemark] Excuse more backtick edge cases (#4642)
This edge cases were previously flagged when they should be ignored, as changing them breaks typescript. This commit makes it so they are ignored. It also organizes a little better, using functions instead of multi-layered conditionals (it was getting confusing).
- Loading branch information
Showing
7 changed files
with
208 additions
and
39 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if (typeof v === "string") {} | ||
|
||
if (typeof `string` === 'number') {} | ||
|
||
const object: { | ||
"optional-prop"?: "hello-optional" | ||
"another-kebab": "hello-value" | ||
} = { | ||
"optional-prop": undefined, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[typescript]: <2.7.1 | ||
if (typeof v === "string") {} | ||
|
||
if (typeof "string" === 'number') {} | ||
~~~~~~~~ [double] | ||
|
||
const object: { | ||
"optional-prop"?: "hello-optional" | ||
"another-kebab": "hello-value" | ||
} = { | ||
"optional-prop": undefined, | ||
"another-kebab": "hello-value" | ||
}; | ||
[single]: ' should be ` | ||
[double]: " should be ` |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if (typeof v === `string`) {} | ||
|
||
if (typeof `string` === `number`) {} | ||
|
||
const object: { | ||
"optional-prop"?: `hello-optional` | ||
"optional-function"?(): void | ||
"another-kebab": `hello-value` | ||
} = { | ||
"optional-prop": undefined, | ||
"optional-function"() {}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[typescript]: >=2.7.1 | ||
if (typeof v === "string") {} | ||
~~~~~~~~ [double] | ||
|
||
if (typeof "string" === 'number') {} | ||
~~~~~~~~ [double] | ||
~~~~~~~~ [single] | ||
|
||
const object: { | ||
"optional-prop"?: `hello-optional` | ||
"optional-function"?(): void | ||
"another-kebab": "hello-value" | ||
~~~~~~~~~~~~~ [double] | ||
} = { | ||
"optional-prop": undefined, | ||
"optional-function"() {}, | ||
"another-kebab": "hello-value" | ||
~~~~~~~~~~~~~ [double] | ||
}; | ||
[single]: ' should be ` | ||
[double]: " should be ` |