diff --git a/src/language-js/parse/babel.js b/src/language-js/parse/babel.js index aa36a6738..6a7e11816 100644 --- a/src/language-js/parse/babel.js +++ b/src/language-js/parse/babel.js @@ -223,9 +223,6 @@ const allowedReasonCodesArray = [ ``` */ "DeclarationMissingInitializer", - - // https://github.com/babel/babel/pull/17949 - "DecoratorAbstractMethod", ]; const allowedReasonCodes = new Set(allowedReasonCodesArray); diff --git a/tests/format/typescript/comments/16065-2.ts b/tests/format/typescript/comments/16065-2.ts index f63e84107..9917a4275 100644 --- a/tests/format/typescript/comments/16065-2.ts +++ b/tests/format/typescript/comments/16065-2.ts @@ -3,14 +3,6 @@ class Foo { @decorator readonly /* comment */ propertyDefinition; - // TSAbstractPropertyDefinition - @decorator - abstract /* comment */ abstractPropertyDefinition; - - // TSAbstractMethodDefinition - @decorator - abstract /* comment */ abstractMethodDefinition; - // MethodDefinition @decorator private /* comment */ methodDefinition() {} diff --git a/tests/format/typescript/comments/__snapshots__/format.test.js.snap b/tests/format/typescript/comments/__snapshots__/format.test.js.snap index c71761318..279840e59 100644 --- a/tests/format/typescript/comments/__snapshots__/format.test.js.snap +++ b/tests/format/typescript/comments/__snapshots__/format.test.js.snap @@ -260,14 +260,6 @@ class Foo { @decorator readonly /* comment */ propertyDefinition; - // TSAbstractPropertyDefinition - @decorator - abstract /* comment */ abstractPropertyDefinition; - - // TSAbstractMethodDefinition - @decorator - abstract /* comment */ abstractMethodDefinition; - // MethodDefinition @decorator private /* comment */ methodDefinition() {} @@ -289,14 +281,6 @@ class Foo { @decorator readonly /* comment */ propertyDefinition; - // TSAbstractPropertyDefinition - @decorator - abstract /* comment */ abstractPropertyDefinition; - - // TSAbstractMethodDefinition - @decorator - abstract /* comment */ abstractMethodDefinition; - // MethodDefinition @decorator private /* comment */ methodDefinition() {} diff --git a/tests/format/typescript/decorators/__snapshots__/format.test.js.snap b/tests/format/typescript/decorators/__snapshots__/format.test.js.snap index 0cbd95d24..acb96cb21 100644 --- a/tests/format/typescript/decorators/__snapshots__/format.test.js.snap +++ b/tests/format/typescript/decorators/__snapshots__/format.test.js.snap @@ -292,12 +292,6 @@ class Something { readonly property: Array } -class Something2 { - @foo() - // comment - abstract property: Array -} - =====================================output===================================== class Foo1 { @foo @@ -329,12 +323,6 @@ class Something { readonly property: Array; } -class Something2 { - @foo() - // comment - abstract property: Array; -} - ================================================================================ `; diff --git a/tests/format/typescript/decorators/decorators-comments.ts b/tests/format/typescript/decorators/decorators-comments.ts index 2f3c378a9..b3158563d 100644 --- a/tests/format/typescript/decorators/decorators-comments.ts +++ b/tests/format/typescript/decorators/decorators-comments.ts @@ -28,9 +28,3 @@ class Something { // comment readonly property: Array } - -class Something2 { - @foo() - // comment - abstract property: Array -}