Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the indent rule so that the union type has the same indent as …
…the binary expression. (#1527)
- Loading branch information
Showing
7 changed files
with
175 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!--{"parserOptions": {"parser":"@typescript-eslint/parser"}}--> | ||
<script lang="ts"> | ||
type T = | ||
a | ||
| b | ||
type U = | ||
| a | ||
| b | ||
type V = | ||
a | ||
& b | ||
type W = | ||
& a | ||
& b | ||
type X = | ||
& | ||
( | ||
a | ||
| b | ||
) | ||
</script> |
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,19 @@ | ||
<!--{"parserOptions": {"parser":"@typescript-eslint/parser"}}--> | ||
<script lang="ts"> | ||
type T = a | ||
| b | ||
| c | ||
type U = | a | ||
| b | ||
| c | ||
type V = a | ||
| | ||
b | ||
| | ||
c | ||
const a = a | ||
| | ||
b | ||
| | ||
c | ||
</script> |
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,17 @@ | ||
<!--{"parserOptions": {"parser":"@typescript-eslint/parser"}}--> | ||
<script lang="ts"> | ||
type T = U< a | ||
| b | ||
| c | ||
> | ||
type T = U< | ||
| a | ||
| b | ||
| c | ||
> | ||
type T = U< | ||
& a | ||
& b | ||
& c | ||
> | ||
</script> |
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,19 @@ | ||
<!--{"parserOptions": {"parser":"@typescript-eslint/parser"}}--> | ||
<script lang="ts"> | ||
type T = U< | ||
a | ||
| b | ||
| c, | ||
a | ||
| b | ||
| c | ||
> | ||
type T = U< | ||
a | ||
& b | ||
& c, | ||
a | ||
& b | ||
& c | ||
> | ||
</script> |
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,27 @@ | ||
<!--{"parserOptions": {"parser":"@typescript-eslint/parser"}}--> | ||
<script lang="ts"> | ||
type T = [ | ||
a | ||
| b | ||
| c | ||
] | ||
type U = [ | ||
| a | ||
| b | ||
| c | ||
] | ||
type T2 = [ a | ||
| b | ||
| c, | ||
a | ||
| b | ||
| c | ||
] | ||
type U2 = [ | a | ||
| b | ||
| c, | ||
| a | ||
| b | ||
| c | ||
] | ||
</script> |