mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-22 06:04:20 +00:00
chore: update formating
This commit is contained in:
parent
ca24d57fd0
commit
04945bfebd
3 changed files with 16 additions and 5 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue