aboutsummaryrefslogtreecommitdiff
path: root/scripts/generateLocales.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-12-31 12:22:38 +0100
committerGitHub <[email protected]>2022-12-31 12:22:38 +0100
commit2d93e6f14a5ba976f87b71202bc4e011e38ee823 (patch)
tree09c569ac0aa920ba090667a938f67416134dca26 /scripts/generateLocales.ts
parente296ff2d4f6f1aa56fe7c80722257bd0b316b30a (diff)
downloadfaker-2d93e6f14a5ba976f87b71202bc4e011e38ee823.tar.xz
faker-2d93e6f14a5ba976f87b71202bc4e011e38ee823.zip
chore: turn on padding-line-between-statements (#1691)
Diffstat (limited to 'scripts/generateLocales.ts')
-rw-r--r--scripts/generateLocales.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts
index d5540672..37f21ec9 100644
--- a/scripts/generateLocales.ts
+++ b/scripts/generateLocales.ts
@@ -82,6 +82,7 @@ function removeIndexTs(files: string[]): string[] {
if (index !== -1) {
files.splice(index, 1);
}
+
return files;
}
@@ -152,6 +153,7 @@ function tryLoadLocalesMainIndexFile(pathModules: string): LocaleDefinition {
console.error(`Failed to load ${pathModules} or manually parse it.`, e);
}
}
+
return localeDef;
}
@@ -177,6 +179,7 @@ function generateLocalesIndexFile(
)}';`
);
}
+
content.push(
...modules.map((m) => `import ${escapeImport(m)} from './${m}';`)
);