The minimalistic document archiving platform.
refactor(lint): only string in template (#1190)
Corentin Thomassetbb178d12e94a
diff --git a/apps/docs/src/config.data.ts b/apps/docs/src/config.data.tsindex 1fccc469..b17469e9 100644--- a/apps/docs/src/config.data.ts+++ b/apps/docs/src/config.data.ts@@ -69,7 +69,7 @@ ${documentation}- Path: \`${path.join('.')}\`- Environment variable: \`${firstEnv}\` ${restEnvs.length ? `, with fallback to: ${restEnvs.map((e) => `\`${e}\``).join(', ')}` : ''}-- Default value: \`${defaultValue}\`+- Default value: \`${String(defaultValue)}\``.trim();@@ -105,7 +105,7 @@ const fullDotEnv = rowsreturn [...wrapText(documentation),- `# ${firstEnv}=${isEmptyDefaultValue ? '' : defaultValue}`,+ `# ${firstEnv}=${isEmptyDefaultValue ? '' : String(defaultValue)}`,].join('\n');}).join('\n\n');diff --git a/apps/papra-client/src/modules/shared/date/coerce-date.ts b/apps/papra-client/src/modules/shared/date/coerce-date.tsindex 58f72999..0657237f 100644--- a/apps/papra-client/src/modules/shared/date/coerce-date.ts+++ b/apps/papra-client/src/modules/shared/date/coerce-date.ts@@ -10,6 +10,6 @@ export function coerceDate(date: CoercibleDate): Date {}throw new Error(- `Invalid date: expected Date, string, or number, but received value "${date}" of type "${typeof date}"`,+ `Invalid date: expected Date, string, or number, but received value of type "${typeof date}"`,);}diff --git a/packages/cli/src/commands/commands.models.ts b/packages/cli/src/commands/commands.models.tsindex 7550149b..ad95c472 100644--- a/packages/cli/src/commands/commands.models.ts+++ b/packages/cli/src/commands/commands.models.ts@@ -1,6 +1,6 @@export function ensureString(value: unknown): string {if (typeof value !== 'string') {- throw new TypeError(`Expected a string, got ${typeof value}: ${value}`);+ throw new TypeError(`Expected a string, got ${typeof value}`);}return value;