mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Stop printing two spaces between heritage clauses (#22801)
* Stop printing two spaces between heritage clauses * Fix lint
This commit is contained in:
@@ -5161,7 +5161,7 @@ namespace ts {
|
||||
VariableDeclarationList = CommaDelimited | SpaceBetweenSiblings | SingleLine,
|
||||
SingleLineFunctionBodyStatements = SingleLine | SpaceBetweenSiblings | SpaceBetweenBraces,
|
||||
MultiLineFunctionBodyStatements = MultiLine,
|
||||
ClassHeritageClauses = SingleLine | SpaceBetweenSiblings,
|
||||
ClassHeritageClauses = SingleLine,
|
||||
ClassMembers = Indented | MultiLine,
|
||||
InterfaceMembers = Indented | MultiLine,
|
||||
EnumMembers = CommaDelimited | Indented | MultiLine,
|
||||
|
||||
@@ -62,6 +62,12 @@ namespace ts {
|
||||
|
||||
// github #18071
|
||||
printsCorrectly("regularExpressionLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let regex = /abc/;", ScriptTarget.ES2017)));
|
||||
|
||||
printsCorrectly("classHeritageClauses", {}, printer => printer.printFile(createSourceFile(
|
||||
"source.ts",
|
||||
`class A extends B implements C implements D {}`,
|
||||
ScriptTarget.ES2017
|
||||
)));
|
||||
});
|
||||
|
||||
describe("printBundle", () => {
|
||||
|
||||
Reference in New Issue
Block a user