From 96e88a06a086c29e7da894c833b7f3bddd2ddeda Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Mon, 16 Nov 2026 15:04:13 +0200 Subject: [PATCH 1/3] feat: add timestamp and log level to logger --- src/util/logger.ts | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/util/logger.ts b/src/util/logger.ts index b0d964d..48eea37 100644 --- a/src/util/logger.ts +++ b/src/util/logger.ts @@ -1,18 +1,28 @@ -export type Logger = { - log: (...messages: unknown[]) => void; - warn: (...messages: unknown[]) => void; - error: (...messages: unknown[]) => void; +const logMethod = { + info: 'INFO', + warn: 'WARN', + error: 'ERROR', +} as const; + +const buildPrefix = (feature: string, level: string) => + `[${new Date().toISOString()}] [${feature}] [${level}]`; + +type Logger = { + [K in keyof typeof logMethod]: (...messages: unknown[]) => void; }; /** * Every line is prefixed with `[feature]` so logs can be filtered by feature name. */ export const createLogger = (feature: string): Logger => { - const prefix = `[${feature}]`; - - return { - log: (...messages) => console.log(prefix, ...messages), - warn: (...messages) => console.warn(prefix, ...messages), - error: (...messages) => console.error(prefix, ...messages), - }; + return Object.fromEntries( + Object.entries(logMethod).map(([method, level]) => [ + method, + (...messages: unknown[]) => + console[method as keyof Logger]( + buildPrefix(feature, level), + ...messages + ), + ]) + ) as Logger; }; From 9e39ef7be74bf042958953f9a58e065990f83972 Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Mon, 16 Nov 2026 18:38:13 +0200 Subject: [PATCH 2/3] chore: update logger references --- src/common/events/load-events.ts | 2 +- .../interactions/autocomplete-interaction.ts | 2 +- src/common/interactions/button-interaction.ts | 2 +- src/common/interactions/modal-interaction.ts | 2 +- .../interactions/select-menu-interaction.ts | 2 +- src/env.ts | 6 +-- src/features/docs/utils.ts | 2 +- src/features/interaction-create/index.ts | 10 ++--- src/features/ready/index.ts | 6 +-- src/features/showcase-digest/handlers.ts | 4 +- src/features/showcase-digest/triggers.ts | 10 ++--- src/loadEnvFile.ts | 4 +- src/scripts/deploy-commands.ts | 4 +- src/scripts/sync-guides.ts | 12 +++--- .../user-bot-messages-service.ts | 2 +- src/util/advent-scheduler.ts | 10 ++--- src/util/cache/recent-message-store.ts | 2 +- src/util/channel-prefetch.ts | 2 +- src/util/logger.test.ts | 41 ++++++++++--------- src/util/post-guides.ts | 18 ++++---- src/util/server-guard.ts | 6 +-- 21 files changed, 76 insertions(+), 73 deletions(-) diff --git a/src/common/events/load-events.ts b/src/common/events/load-events.ts index 0669b5f..9344b59 100644 --- a/src/common/events/load-events.ts +++ b/src/common/events/load-events.ts @@ -6,7 +6,7 @@ const logger = createLogger('events'); export const loadEvents = (client: Client) => { for (const event of events) { - logger.log(`Loading event: ${event.name}`); + logger.info(`Loading event: ${event.name}`); client[event.once ? 'once' : 'on'](event.name, async (...args) => { try { await event.execute(...args); diff --git a/src/common/interactions/autocomplete-interaction.ts b/src/common/interactions/autocomplete-interaction.ts index 90c847a..5c493cc 100644 --- a/src/common/interactions/autocomplete-interaction.ts +++ b/src/common/interactions/autocomplete-interaction.ts @@ -16,7 +16,7 @@ export const autoCompleteInteractions = new Map< export const registerAutocompleteInteraction = ( interaction: AutoCompleteSubmitInteraction ) => { - logger.log( + logger.info( `Registering autocomplete interaction: ${interaction.commandName}` ); autoCompleteInteractions.set(interaction.commandName, interaction); diff --git a/src/common/interactions/button-interaction.ts b/src/common/interactions/button-interaction.ts index 13d67fb..d4bf712 100644 --- a/src/common/interactions/button-interaction.ts +++ b/src/common/interactions/button-interaction.ts @@ -17,7 +17,7 @@ export const buttonSubmitInteractions = new Map< export const registerButtonSubmitInteraction = ( interaction: ButtonSubmitInteraction ) => { - logger.log( + logger.info( `Registering button submit interaction: ${interaction.commandName}` ); buttonSubmitInteractions.set(interaction.commandName, interaction); diff --git a/src/common/interactions/modal-interaction.ts b/src/common/interactions/modal-interaction.ts index f9e17c2..e701b75 100644 --- a/src/common/interactions/modal-interaction.ts +++ b/src/common/interactions/modal-interaction.ts @@ -17,7 +17,7 @@ export const modalSubmitInteractions = new Map< export const registerModalSubmitInteraction = ( interaction: ModalSubmitInteraction ) => { - logger.log( + logger.info( `Registering modal submit interaction: ${interaction.commandName}` ); modalSubmitInteractions.set(interaction.commandName, interaction); diff --git a/src/common/interactions/select-menu-interaction.ts b/src/common/interactions/select-menu-interaction.ts index 549a50d..eb4433b 100644 --- a/src/common/interactions/select-menu-interaction.ts +++ b/src/common/interactions/select-menu-interaction.ts @@ -17,7 +17,7 @@ export const selectMenuSubmitInteractions = new Map< export const registerSelectMenuSubmitInteraction = ( interaction: SelectMenuSubmitInteraction ) => { - logger.log( + logger.info( `Registering select menu submit interaction: ${interaction.commandName}` ); selectMenuSubmitInteractions.set(interaction.commandName, interaction); diff --git a/src/env.ts b/src/env.ts index 267ba09..18e025f 100644 --- a/src/env.ts +++ b/src/env.ts @@ -60,10 +60,10 @@ export const config = { export type Config = typeof config; -logger.log('✅ Configuration loaded successfully'); -logger.log( +logger.info('✅ Configuration loaded successfully'); +logger.info( `📋 Client ID: ${config.discord.clientId ? config.discord.clientId : '❌ missing'}` ); -logger.log( +logger.info( `🔑 Token: ${config.discord.token ? '***configured***' : '❌ missing'}` ); diff --git a/src/features/docs/utils.ts b/src/features/docs/utils.ts index 6bb7afe..e9492db 100644 --- a/src/features/docs/utils.ts +++ b/src/features/docs/utils.ts @@ -93,7 +93,7 @@ export const executeDocCommand = async ( }, }); } else if (componentInteraction.isButton()) { - logger.log('Documentation command cancelled by user.'); + logger.info('Documentation command cancelled by user.'); await interaction.deleteReply(); } }); diff --git a/src/features/interaction-create/index.ts b/src/features/interaction-create/index.ts index fcf5fce..eb0ebf1 100644 --- a/src/features/interaction-create/index.ts +++ b/src/features/interaction-create/index.ts @@ -16,7 +16,7 @@ export const interactionCreateEvent = createEvent( }, async (interaction) => { if (!interaction.guildId || !isAllowedServer(interaction.guildId)) { - logger.log( + logger.info( `âš ī¸ Command blocked from unauthorized server: ${interaction.guildId}` ); if (interaction.isRepliable()) { @@ -28,7 +28,7 @@ export const interactionCreateEvent = createEvent( return; } if (interaction.isButton()) { - logger.log( + logger.info( `Received button interaction with custom ID: ${interaction.customId}` ); await handleButtonInteraction(interaction); @@ -36,7 +36,7 @@ export const interactionCreateEvent = createEvent( } if (interaction.isModalSubmit()) { - logger.log( + logger.info( `Received modal submit interaction with custom ID: ${interaction.customId}` ); await handleModalInteraction(interaction); @@ -44,7 +44,7 @@ export const interactionCreateEvent = createEvent( } if (interaction.isStringSelectMenu()) { - logger.log( + logger.info( `Received select menu interaction with custom ID: ${interaction.customId}` ); await handleSelectMenuInteraction(interaction); @@ -52,7 +52,7 @@ export const interactionCreateEvent = createEvent( } if (interaction.isAutocomplete()) { - logger.log( + logger.info( `Received autocomplete interaction with custom ID: ${interaction.commandName}` ); await handleAutoCompleteInteraction(interaction); diff --git a/src/features/ready/index.ts b/src/features/ready/index.ts index f231abe..c539633 100644 --- a/src/features/ready/index.ts +++ b/src/features/ready/index.ts @@ -23,10 +23,10 @@ export const readyEvent = createEvent( once: true, }, async (client) => { - logger.log(`Ready! Logged in as ${client.user.tag}`); + logger.info(`Ready! Logged in as ${client.user.tag}`); // Check all guilds and leave any unauthorized ones - logger.log(`🔍 Checking ${client.guilds.cache.size} guild(s)...`); + logger.info(`🔍 Checking ${client.guilds.cache.size} guild(s)...`); for (const guild of client.guilds.cache.values()) { await leaveIfNotAllowedServer(guild); } @@ -47,7 +47,7 @@ export const readyEvent = createEvent( } // Sync guides to channel try { - guidesLogger.log( + guidesLogger.info( `🔄 Starting guide sync to channel ${config.channelIds.guides}...` ); await syncGuidesToChannel(client, config.channelIds.guides); diff --git a/src/features/showcase-digest/handlers.ts b/src/features/showcase-digest/handlers.ts index cf1fb07..58e8850 100644 --- a/src/features/showcase-digest/handlers.ts +++ b/src/features/showcase-digest/handlers.ts @@ -135,7 +135,7 @@ export const processShowcaseDigestResults = async ( ageMs >= RESULTS_AFTER_DAYS * DAY && ageMs < (RESULTS_AFTER_DAYS + 1) * DAY; if (!isDue) { - logger.log( + logger.info( 'Most recent showcase digest is not within the results window, skipping.' ); return; @@ -148,7 +148,7 @@ export const processShowcaseDigestResults = async ( message.createdTimestamp > digestMessage.createdTimestamp ); if (alreadyAnnounced) { - logger.log('Showcase digest results have already been announced.'); + logger.info('Showcase digest results have already been announced.'); return; } } diff --git a/src/features/showcase-digest/triggers.ts b/src/features/showcase-digest/triggers.ts index 5e491d3..fda3a25 100644 --- a/src/features/showcase-digest/triggers.ts +++ b/src/features/showcase-digest/triggers.ts @@ -36,17 +36,17 @@ const SHOWCASE_DIGEST_CRONS = ['0 16 * * 5#1', '0 16 * * 5#3']; const SHOWCASE_DIGEST_RESULTS_CRON = '0 16 * * 1'; const runScheduledShowcaseDigest = async (): Promise => { - logger.log('Running scheduled showcase digest...'); + logger.info('Running scheduled showcase digest...'); try { await createShowcaseDigest(); - logger.log(`Successfully displayed showcase digest!`); + logger.info(`Successfully displayed showcase digest!`); } catch (error) { logger.error(error); } }; const runScheduledShowcaseDigestResults = async (): Promise => { - logger.log('Running scheduled showcase digest results...'); + logger.info('Running scheduled showcase digest results...'); try { await processShowcaseDigestResults(); } catch (error) { @@ -55,7 +55,7 @@ const runScheduledShowcaseDigestResults = async (): Promise => { }; export function initializeShowcaseDigestScheduler(): void { - logger.log('Initializing showcase digest scheduler...'); + logger.info('Initializing showcase digest scheduler...'); SHOWCASE_DIGEST_CRONS.forEach((expression) => { cron.schedule(expression, runScheduledShowcaseDigest, { timezone: 'UTC' }); @@ -67,7 +67,7 @@ export function initializeShowcaseDigestScheduler(): void { { timezone: 'UTC' } ); - logger.log( + logger.info( 'Showcase digest scheduler initialized (digests on 1st and 3rd Fridays at 16:00 UTC, results on Mondays at 16:00 UTC)' ); } diff --git a/src/loadEnvFile.ts b/src/loadEnvFile.ts index d341679..c2b1425 100644 --- a/src/loadEnvFile.ts +++ b/src/loadEnvFile.ts @@ -27,7 +27,7 @@ function loadEnvFile(filePath: string) { } } } - logger.log(`✅ Loaded: ${filePath}`); + logger.info(`✅ Loaded: ${filePath}`); } catch (error) { logger.warn(`Warning: Could not load ${filePath}`); logger.warn(error); @@ -35,7 +35,7 @@ function loadEnvFile(filePath: string) { } const nodeEnv = process.env.NODE_ENV || 'development'; -logger.log(`🌍 Environment: ${nodeEnv}`); +logger.info(`🌍 Environment: ${nodeEnv}`); const ENV_FILES = { test: join(process.cwd(), '.env.test'), diff --git a/src/scripts/deploy-commands.ts b/src/scripts/deploy-commands.ts index c0cbd90..4c26b98 100644 --- a/src/scripts/deploy-commands.ts +++ b/src/scripts/deploy-commands.ts @@ -11,7 +11,7 @@ import { createLogger } from '@/util/logger.js'; const logger = createLogger('deploy-commands'); export async function deployCommands() { - logger.log('Deploying commands...'); + logger.info('Deploying commands...'); const commandData = [...commands.values()].map((command) => command.data); const rest = new REST({ version: '10' }).setToken(config.discord.token); @@ -26,7 +26,7 @@ export async function deployCommands() { body: commandData, } )) as RESTPutAPIApplicationCommandsResult; - logger.log( + logger.info( `✅ Successfully deployed ${result.length} commands to guild ${config.discord.serverId}` ); } catch (error) { diff --git a/src/scripts/sync-guides.ts b/src/scripts/sync-guides.ts index 94b4459..ebe4dfb 100644 --- a/src/scripts/sync-guides.ts +++ b/src/scripts/sync-guides.ts @@ -25,7 +25,7 @@ async function main() { process.exit(1); } - logger.log(`🤖 Starting Discord client for guide sync...`); + logger.info(`🤖 Starting Discord client for guide sync...`); const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages], @@ -33,25 +33,25 @@ async function main() { try { await client.login(config.discord.token); - logger.log(`✅ Logged in as ${client.user?.tag}`); + logger.info(`✅ Logged in as ${client.user?.tag}`); if (shouldInitialize) { - logger.log( + logger.info( '🚀 Initializing guides channel (will post all guides fresh)...' ); await initializeGuidesChannel(client, config.channelIds.guides); } else { - logger.log('🔄 Synchronizing guides...'); + logger.info('🔄 Synchronizing guides...'); await syncGuidesToChannel(client, config.channelIds.guides); } - logger.log('✅ Guide synchronization completed successfully'); + logger.info('✅ Guide synchronization completed successfully'); } catch (error) { logger.error('❌ Guide synchronization failed:', error); process.exit(1); } finally { await client.destroy(); - logger.log('👋 Discord client disconnected'); + logger.info('👋 Discord client disconnected'); } } diff --git a/src/services/user-bot-messages/user-bot-messages-service.ts b/src/services/user-bot-messages/user-bot-messages-service.ts index fb91c6f..f6b045c 100644 --- a/src/services/user-bot-messages/user-bot-messages-service.ts +++ b/src/services/user-bot-messages/user-bot-messages-service.ts @@ -63,7 +63,7 @@ export const UserBotMessagesService = { where: { expiresAt: { lte: new Date() } }, }); if (count > 0) { - logger.log(`Cleaned up ${count} expired user bot messages.`); + logger.info(`Cleaned up ${count} expired user bot messages.`); } }; diff --git a/src/util/advent-scheduler.ts b/src/util/advent-scheduler.ts index 9c6e4db..5f8b974 100644 --- a/src/util/advent-scheduler.ts +++ b/src/util/advent-scheduler.ts @@ -79,7 +79,7 @@ async function createAdventPost( }, }); - logger.log(`✅ Created Advent of Code post: ${title}`); + logger.info(`✅ Created Advent of Code post: ${title}`); return true; } catch (error) { logger.error( @@ -109,7 +109,7 @@ async function checkAndCreateTodaysPost( const alreadyPosted = await isDayPosted(year, day); if (alreadyPosted) { - logger.log(`â„šī¸ Advent of Code post for ${year} day ${day} already exists`); + logger.info(`â„šī¸ Advent of Code post for ${year} day ${day} already exists`); return; } @@ -128,7 +128,7 @@ export function initializeAdventScheduler( client: Client, channelId: string ): void { - logger.log('🎄 Initializing Advent of Code scheduler...'); + logger.info('🎄 Initializing Advent of Code scheduler...'); checkAndCreateTodaysPost(client, channelId).catch((error) => { logger.error( @@ -140,13 +140,13 @@ export function initializeAdventScheduler( // Schedule to run every day at midnight UTC-5 // https://github.com/node-cron/node-cron?tab=readme-ov-file#cron-syntax cron.schedule('0 5 * * *', () => { - logger.log('⏰ Running scheduled Advent of Code check...'); + logger.info('⏰ Running scheduled Advent of Code check...'); checkAndCreateTodaysPost(client, channelId).catch((error) => { logger.error('❌ Error in scheduled Advent of Code check:', error); }); }); - logger.log( + logger.info( '✅ Advent of Code scheduler initialized (runs daily at midnight UTC)' ); } diff --git a/src/util/cache/recent-message-store.ts b/src/util/cache/recent-message-store.ts index 5021ca5..2f6036a 100644 --- a/src/util/cache/recent-message-store.ts +++ b/src/util/cache/recent-message-store.ts @@ -227,7 +227,7 @@ export class MessageCache { // Bulk delete old messages if (messagesToDelete.length > 0) { - logger.log( + logger.info( `Cleaning up ${messagesToDelete.length} old messages from cache (older than ${maxRuleTimeframe}ms)` ); this.bulkDeleteByIds(messagesToDelete); diff --git a/src/util/channel-prefetch.ts b/src/util/channel-prefetch.ts index d7f8d2b..e6997fb 100644 --- a/src/util/channel-prefetch.ts +++ b/src/util/channel-prefetch.ts @@ -23,7 +23,7 @@ export const fetchAndCachePublicChannelsMessages = async ( const messages = await channel.messages.fetch({ limit: PER_CHANNEL_CACHE_LIMIT, }); - logger.log( + logger.info( `Fetched and cached ${messages.size} messages from channel ${channel.name} (${channel.id})` ); cachedChannelsMap.add(channel.id); diff --git a/src/util/logger.test.ts b/src/util/logger.test.ts index feadedd..48b5ca9 100644 --- a/src/util/logger.test.ts +++ b/src/util/logger.test.ts @@ -2,44 +2,47 @@ import assert from 'node:assert/strict'; import { afterEach, describe, it, mock } from 'node:test'; import { createLogger } from './logger.js'; +const buildPrefixRegex = (feature: string, level: string) => + new RegExp( + String.raw`^\[\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\] \[${feature}\] \[${level}\]$` + ); + void describe('createLogger', () => { afterEach(() => { mock.restoreAll(); }); - void it('prefixes log output with the feature name', () => { - const consoleLog = mock.method(console, 'log', () => {}); + void it('prefixes info output with timestamp, feature name, and level', () => { + const consoleInfo = mock.method(console, 'info', () => {}); + + createLogger('showcase').info('created post', 42); - createLogger('showcase').log('created post', 42); + const [prefix, ...messages] = consoleInfo.mock.calls[0]!.arguments; - assert.deepEqual(consoleLog.mock.calls[0]?.arguments, [ - '[showcase]', - 'created post', - 42, - ]); + assert.match(prefix as string, buildPrefixRegex('showcase', 'INFO')); + assert.deepEqual(messages, ['created post', 42]); }); - void it('prefixes warnings with the feature name', () => { + void it('prefixes warnings with timestamp, feature name, and level', () => { const consoleWarn = mock.method(console, 'warn', () => {}); createLogger('guides').warn('missing access'); - assert.deepEqual(consoleWarn.mock.calls[0]?.arguments, [ - '[guides]', - 'missing access', - ]); + const [prefix, ...messages] = consoleWarn.mock.calls[0]!.arguments; + + assert.match(prefix as string, buildPrefixRegex('guides', 'WARN')); + assert.deepEqual(messages, ['missing access']); }); - void it('prefixes errors and keeps the error object as an argument', () => { + void it('prefixes errors and preserves the error object as an argument', () => { const consoleError = mock.method(console, 'error', () => {}); const error = new Error('boom'); createLogger('tags').error('Error deleting tag:', error); - assert.deepEqual(consoleError.mock.calls[0]?.arguments, [ - '[tags]', - 'Error deleting tag:', - error, - ]); + const [prefix, ...messages] = consoleError.mock.calls[0]!.arguments; + + assert.match(prefix as string, buildPrefixRegex('tags', 'ERROR')); + assert.deepEqual(messages, ['Error deleting tag:', error]); }); }); diff --git a/src/util/post-guides.ts b/src/util/post-guides.ts index 759985e..070846f 100644 --- a/src/util/post-guides.ts +++ b/src/util/post-guides.ts @@ -55,7 +55,7 @@ const loadTracker = async (): Promise => { const content = await readFile(TRACKER_FILE, 'utf8'); return JSON.parse(content); } catch { - logger.log('No existing tracker file found, starting fresh'); + logger.info('No existing tracker file found, starting fresh'); return {}; } }; @@ -101,7 +101,7 @@ const postGuideToChannel = async ( embeds: [createGuideEmbed(guide)], }); - logger.log(`✅ Posted guide "${guide.name}" (${guide.filename})`); + logger.info(`✅ Posted guide "${guide.name}" (${guide.filename})`); return message.id; }; @@ -116,7 +116,7 @@ const editGuideMessage = async ( embeds: [createGuideEmbed(guide)], }); - logger.log(`📝 Updated guide "${guide.name}" (${guide.filename})`); + logger.info(`📝 Updated guide "${guide.name}" (${guide.filename})`); } catch (error) { logger.error( `Failed to edit message ${messageId} for guide "${guide.name}":`, @@ -135,7 +135,7 @@ const deleteGuideMessage = async ( const message = await channel.messages.fetch(messageId); await message.delete(); - logger.log(`đŸ—‘ī¸ Deleted guide "${guideName}"`); + logger.info(`đŸ—‘ī¸ Deleted guide "${guideName}"`); } catch (error) { logger.error( `Failed to delete message ${messageId} for guide "${guideName}":`, @@ -148,7 +148,7 @@ export const syncGuidesToChannel = async ( client: Client, channelId: string ): Promise => { - logger.log('🔄 Starting guide synchronization...'); + logger.info('🔄 Starting guide synchronization...'); try { const channel = await client.channels.fetch(channelId); @@ -183,7 +183,7 @@ export const syncGuidesToChannel = async ( ); }); - logger.log( + logger.info( `📊 Found: ${newFiles.length} new, ${modifiedFiles.length} modified, ${deletedFiles.length} deleted` ); @@ -228,9 +228,9 @@ export const syncGuidesToChannel = async ( const totalChanges = newFiles.length + modifiedFiles.length + deletedFiles.length; if (totalChanges === 0) { - logger.log('✨ All guides are up to date!'); + logger.info('✨ All guides are up to date!'); } else { - logger.log( + logger.info( `✅ Guide synchronization complete! Made ${totalChanges} changes.` ); } @@ -244,7 +244,7 @@ export const initializeGuidesChannel = async ( client: Client, channelId: string ): Promise => { - logger.log('🚀 Initializing guides channel...'); + logger.info('🚀 Initializing guides channel...'); // Clear existing tracker await saveTracker({}); diff --git a/src/util/server-guard.ts b/src/util/server-guard.ts index 75527cf..550ce9f 100644 --- a/src/util/server-guard.ts +++ b/src/util/server-guard.ts @@ -17,12 +17,12 @@ export function isAllowedServer(guildId: string): boolean { */ export async function leaveIfNotAllowedServer(guild: Guild): Promise { if (!isAllowedServer(guild.id)) { - logger.log( + logger.info( `âš ī¸ Bot added to unauthorized server: ${guild.name} (${guild.id})` ); - logger.log(`đŸšĒ Leaving server...`); + logger.info(`đŸšĒ Leaving server...`); await guild.leave(); - logger.log(`✅ Left unauthorized server: ${guild.name}`); + logger.info(`✅ Left unauthorized server: ${guild.name}`); return true; } return false; From 96ca79ee8752eb777e28b82576f81f689612a5b5 Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Mon, 16 Nov 2026 18:38:40 +0200 Subject: [PATCH 3/3] chore: add zed IDE setting --- .zed/settings.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .zed/settings.json diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 0000000..c11772d --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,7 @@ +{ + "formatter": { + "language_server": { + "name": "oxfmt" + } + } +}