From b8128f548c2c1381691df1d4dd6d1a9d68057594 Mon Sep 17 00:00:00 2001 From: Fernando Rivas Date: Tue, 28 Nov 2023 13:45:14 +0100 Subject: [PATCH] feat: move readonly modifier after abstract --- src/printer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/printer.js b/src/printer.js index ac77c1a26..02ff71e65 100644 --- a/src/printer.js +++ b/src/printer.js @@ -1208,14 +1208,14 @@ function printClass(path, options, print) { declaration.push("final "); } - if (node.isReadonly) { - declaration.push("readonly "); - } - if (node.isAbstract) { declaration.push("abstract "); } + if (node.isReadonly) { + declaration.push("readonly "); + } + // `new` print `class` keyword with arguments declaration.push(isAnonymousClass ? "" : node.kind);