chore: update formating

This commit is contained in:
ahmadk953 2025-06-16 21:44:18 -04:00
parent ca24d57fd0
commit 04945bfebd
No known key found for this signature in database
GPG key ID: 31D488058614185C
3 changed files with 16 additions and 5 deletions

View file

@ -1,8 +1,14 @@
import path from 'path';
import process from 'process';
const buildEslintCommand = (filenames) =>
`eslint ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')}`;
const buildEslintCommand = (filenames) => {
// only lint files under src/
const srcFiles = filenames.filter((f) => f.startsWith('src/'));
if (srcFiles.length === 0) return '';
return `eslint ${srcFiles
.map((f) => path.relative(process.cwd(), f))
.join(' ')}`;
};
const prettierCommand = 'prettier --write';

View file

@ -68,7 +68,7 @@ services:
CLIENT_TLS_CA_FILE: /certs/ca.crt
SERVER_TLS_SSLMODE: require
ports:
- "5432:5432"
- '5432:5432'
depends_on:
- postgres
volumes:

View file

@ -67,7 +67,12 @@ export async function generateMemberBanner({
width,
height,
}: generateMemberBannerTypes): Promise<AttachmentBuilder> {
const welcomeBackground = path.join(__dirname, 'assets', 'images', 'welcome-bg.png');
const welcomeBackground = path.join(
__dirname,
'assets',
'images',
'welcome-bg.png',
);
const canvas = Canvas.createCanvas(width, height);
const context = canvas.getContext('2d');
const background = await Canvas.loadImage(welcomeBackground);