diff --git a/dprint.json b/dprint.json index cfed43fb7..d62f767d2 100644 --- a/dprint.json +++ b/dprint.json @@ -15,8 +15,8 @@ "dist-deno" ], "plugins": [ - "https://plugins.dprint.dev/typescript-0.88.6.wasm", - "https://plugins.dprint.dev/json-0.19.1.wasm", - "https://plugins.dprint.dev/markdown-0.16.3.wasm" + "https://plugins.dprint.dev/typescript-0.91.1.wasm", + "https://plugins.dprint.dev/json-0.19.3.wasm", + "https://plugins.dprint.dev/markdown-0.17.1.wasm" ] } diff --git a/packages/scripts/utils/Memoize.ts b/packages/scripts/utils/Memoize.ts index f0059830c..17405f344 100644 --- a/packages/scripts/utils/Memoize.ts +++ b/packages/scripts/utils/Memoize.ts @@ -1,10 +1,9 @@ /** Decorator for memoizing the result of a method. */ export function Memoize(target: (...args: any[]) => void) { - if (target instanceof Function) { + if (target instanceof Function) return getNewFunction(target); - } else { + else throw new Error("Not implemented."); - } } const weakMap = new WeakMap>(); diff --git a/packages/ts-morph/breaking-changes.md b/packages/ts-morph/breaking-changes.md index b81012a9c..8743bb809 100644 --- a/packages/ts-morph/breaking-changes.md +++ b/packages/ts-morph/breaking-changes.md @@ -1,4 +1,4 @@ -# Breaking Changes +# Breaking Changes View [CHANGELOG.md](CHANGELOG.md) for more detail on releases. This file is only a high level overview of breaking changes. diff --git a/packages/ts-morph/readme.md b/packages/ts-morph/readme.md index fbf3cd339..39d6b86b8 100644 --- a/packages/ts-morph/readme.md +++ b/packages/ts-morph/readme.md @@ -1,4 +1,4 @@ -# ts-morph +# ts-morph [![npm version](https://badge.fury.io/js/ts-morph.svg)](https://badge.fury.io/js/ts-morph) [![CI](https://github.com/dsherret/ts-morph/workflows/CI/badge.svg)](https://github.com/dsherret/ts-morph/actions?query=workflow%3ACI) diff --git a/packages/ts-morph/scripts/readme.md b/packages/ts-morph/scripts/readme.md index 6be2c06cb..625337fa5 100644 --- a/packages/ts-morph/scripts/readme.md +++ b/packages/ts-morph/scripts/readme.md @@ -1,3 +1,3 @@ -# Scripts +# Scripts This folder contains the code that verifies, manipulates, and generates code for ts-morph. diff --git a/packages/ts-morph/src/manipulation/readme.md b/packages/ts-morph/src/manipulation/readme.md index 67dd30bb0..978e11261 100644 --- a/packages/ts-morph/src/manipulation/readme.md +++ b/packages/ts-morph/src/manipulation/readme.md @@ -1,4 +1,4 @@ -# Manipulation +# Manipulation In this folder, most of the code is for changing the text and replacing an old tree with the new one. diff --git a/packages/ts-morph/src/next-major-deprecations.md b/packages/ts-morph/src/next-major-deprecations.md index 293d6c269..06a2ea41f 100644 --- a/packages/ts-morph/src/next-major-deprecations.md +++ b/packages/ts-morph/src/next-major-deprecations.md @@ -1,3 +1,3 @@ -# Deprecations in the next major +# Deprecations in the next major - None diff --git a/packages/ts-morph/src/tests/compiler/ast/class/classDeclarationTests.ts b/packages/ts-morph/src/tests/compiler/ast/class/classDeclarationTests.ts index 23cb5546b..a96930109 100644 --- a/packages/ts-morph/src/tests/compiler/ast/class/classDeclarationTests.ts +++ b/packages/ts-morph/src/tests/compiler/ast/class/classDeclarationTests.ts @@ -89,7 +89,7 @@ class Identifier extends Other { const structure: OptionalKindAndTrivia> = { extends: "Other", ctors: [{}], - staticBlocks: [{ statements: ["test;"]}], + staticBlocks: [{ statements: ["test;"] }], properties: [{ name: "p" }], getAccessors: [{ name: "g" }], setAccessors: [{ name: "s", parameters: [{ name: "value", type: "string" }] }],