diff options
| author | Piotr Kuczynski <[email protected]> | 2022-04-19 22:38:17 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-19 22:38:17 +0200 |
| commit | 00b9d4be4bff3b3f64edf163768af71c99bceed1 (patch) | |
| tree | 0fa0e76b036c11c38eea251a8c4d371875810eed /scripts/apidoc/apiDocsWriter.ts | |
| parent | cb746cb466743a219c0e3845edb29527a06b0a35 (diff) | |
| download | faker-00b9d4be4bff3b3f64edf163768af71c99bceed1.tar.xz faker-00b9d4be4bff3b3f64edf163768af71c99bceed1.zip | |
chore: prefer string templates over string concatenation (#732)
Diffstat (limited to 'scripts/apidoc/apiDocsWriter.ts')
| -rw-r--r-- | scripts/apidoc/apiDocsWriter.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/apidoc/apiDocsWriter.ts b/scripts/apidoc/apiDocsWriter.ts index f712e4aa..cb803499 100644 --- a/scripts/apidoc/apiDocsWriter.ts +++ b/scripts/apidoc/apiDocsWriter.ts @@ -64,7 +64,7 @@ export function writeApiDocsModulePage( content = vitePressInFileOptions + formatMarkdown(content); - writeFileSync(resolve(pathOutputDir, lowerModuleName + '.md'), content); + writeFileSync(resolve(pathOutputDir, `${lowerModuleName}.md`), content); } /** @@ -87,7 +87,7 @@ export function writeApiDocsDirectPage(methodName: string): void { content = vitePressInFileOptions + formatMarkdown(content); - writeFileSync(resolve(pathOutputDir, methodName + '.md'), content); + writeFileSync(resolve(pathOutputDir, `${methodName}.md`), content); } /** @@ -111,7 +111,7 @@ export const ${lowerModuleName}: Method[] = ${JSON.stringify( contentTs = formatTypescript(contentTs); - writeFileSync(resolve(pathOutputDir, lowerModuleName + '.ts'), contentTs); + writeFileSync(resolve(pathOutputDir, `${lowerModuleName}.ts`), contentTs); } /** |
