aboutsummaryrefslogtreecommitdiff
path: root/scripts/apidoc/apiDocsWriter.ts
diff options
context:
space:
mode:
authorPiotr Kuczynski <[email protected]>2022-04-19 22:38:17 +0200
committerGitHub <[email protected]>2022-04-19 22:38:17 +0200
commit00b9d4be4bff3b3f64edf163768af71c99bceed1 (patch)
tree0fa0e76b036c11c38eea251a8c4d371875810eed /scripts/apidoc/apiDocsWriter.ts
parentcb746cb466743a219c0e3845edb29527a06b0a35 (diff)
downloadfaker-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.ts6
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);
}
/**