feat: upgrade prettier to v3

This commit is contained in:
Thea Schöbl
2023-12-05 10:36:04 +00:00
parent 991ed1cb1f
commit 31a6ebfd3f
50 changed files with 455 additions and 362 deletions

View File

@@ -86,8 +86,8 @@ export function resolvePropertyName(name?: ts.PropertyName): string | undefined
return name === undefined
? undefined
: ts.isComputedPropertyName(name)
? 'UNSUPPORTED_IDENTIFIER_TYPE'
: name.getText();
? 'UNSUPPORTED_IDENTIFIER_TYPE'
: name.getText();
}
/** @internal */

View File

@@ -72,7 +72,10 @@ class LightweightDefinitionBuilder {
readonly typeChecker: ts.TypeChecker;
constructor(sourcePath: string | string[], readonly includeComments: boolean) {
constructor(
sourcePath: string | string[],
readonly includeComments: boolean,
) {
const rootNames = Array.isArray(sourcePath)
? sourcePath
: expandPathToFilesSync(path.resolve(sourcePath), it => it.endsWith('.ts'));