Skip to content

Commit cb5927b

Browse files
committed
feat: remove any opinion on code formatting, let the consumer tsconfig take control
1 parent 4f9b4e5 commit cb5927b

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

lib/process-document.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ import camelcase from 'camelcase';
55
import type { OpenAPIV3 } from 'openapi-types';
66
import toposort from 'toposort';
77
import {
8-
IndentationText,
98
InterfaceDeclaration,
9+
Node,
1010
Project,
11-
QuoteKind,
12-
ScriptTarget,
11+
Scope,
1312
StructureKind,
1413
SyntaxKind,
1514
TypeAliasDeclaration,
1615
VariableDeclarationKind,
1716
Writers,
18-
Scope,
19-
Node,
2017
} from 'ts-morph';
2118
import { registerTypesFromSchema, schemaToType } from './process-schema.js';
2219
import { getDependents, pascalCase, wordWrap } from './utils.js';
@@ -50,17 +47,7 @@ export async function processOpenApiDocument(
5047
schema: OpenAPIV3.Document,
5148
tags?: string[] | undefined,
5249
) {
53-
const project = new Project({
54-
compilerOptions: {
55-
target: ScriptTarget.ES2022,
56-
declaration: true,
57-
},
58-
manipulationSettings: {
59-
quoteKind: QuoteKind.Single,
60-
indentationText: IndentationText.TwoSpaces,
61-
useTrailingCommas: true,
62-
},
63-
});
50+
const project = new Project();
6451

6552
const commandsFile = project.createSourceFile(
6653
join(outputDir, 'commands.ts'),

0 commit comments

Comments
 (0)