Add blog post for v3.7 (#18323)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
8147dddb91
commit
43236e234e
8 files changed
+1937
-10
No files matched your search
@@ -1,4 +1,6 @@
|
||||
#### Fix the inconsistent printing between class and interface (#18094, #18091, #18215 by @fisker)
|
||||
#### [HIGHLIGHT] Fix the inconsistent printing between class and interface (#18094, #18091, #18215 by @fisker)
|
||||
|
||||
In this release, we've focused heavily on improving consistency between Class and Interface formatting. Previously, these two similar constructs were printed quite differently, leading to visual inconsistencies. We've aligned their formatting rules to provide a more predictable and cleaner output.
|
||||
|
||||
##### The extra indentation for type parameters in class has been removed
|
||||
|
||||
@@ -114,11 +116,6 @@ interface ExtendsLongOneWithGenerics
|
||||
> {}
|
||||
|
||||
// Prettier main
|
||||
interface Interface extends GenericEnvironment<
|
||||
SomeType,
|
||||
AnotherType,
|
||||
YetAnotherType
|
||||
> {}
|
||||
class ExtendsLongOneWithGenerics extends Bar<
|
||||
SomeLongTypeSomeLongTypeSomeLongTypeSomeLongType,
|
||||
ToBreakLineToBreakLineToBreakLine
|
||||
|
||||
@@ -25,7 +25,7 @@ type SuperLongTypeNameLoremIpsumLoremIpsumBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla =
|
||||
| Fooo1000
|
||||
| Baz2000
|
||||
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
|
||||
type A = // comment
|
||||
type A = // comment
|
||||
| Fooo1000
|
||||
| Baz2000
|
||||
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
|
||||
|
||||
@@ -7,7 +7,7 @@ interface A {
|
||||
a: // Comment
|
||||
B;
|
||||
b: // Comment
|
||||
| Fooo1000
|
||||
| Fooo1000
|
||||
| Baz2000
|
||||
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
|
||||
c: // Comment
|
||||
|
||||
@@ -18,7 +18,7 @@ interface I {
|
||||
|
||||
// Prettier main
|
||||
interface I {
|
||||
elements: // comment
|
||||
elements: // comment
|
||||
| [string, ExpressionNode, ExpressionNode]
|
||||
| [string, ExpressionNode, ExpressionNode, ObjectExpression];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user