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 path from 'path';
|
||||||
import process from 'process';
|
import process from 'process';
|
||||||
|
|
||||||
const buildEslintCommand = (filenames) =>
|
const buildEslintCommand = (filenames) => {
|
||||||
`eslint ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')}`;
|
// 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';
|
const prettierCommand = 'prettier --write';
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ services:
|
||||||
CLIENT_TLS_CA_FILE: /certs/ca.crt
|
CLIENT_TLS_CA_FILE: /certs/ca.crt
|
||||||
SERVER_TLS_SSLMODE: require
|
SERVER_TLS_SSLMODE: require
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- '5432:5432'
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -67,7 +67,12 @@ export async function generateMemberBanner({
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
}: generateMemberBannerTypes): Promise<AttachmentBuilder> {
|
}: 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 canvas = Canvas.createCanvas(width, height);
|
||||||
const context = canvas.getContext('2d');
|
const context = canvas.getContext('2d');
|
||||||
const background = await Canvas.loadImage(welcomeBackground);
|
const background = await Canvas.loadImage(welcomeBackground);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue