From 2c4ef7e29ce1f78c1394a476a2f96b3987f95ac5 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Thu, 24 Oct 2024 14:59:34 +0400 Subject: [PATCH] bot: fix lint issues! --- bot/__tests__/unit/database/services/channel.test.ts | 1 - bot/__tests__/unit/database/services/guildMember.test.ts | 1 - bot/__tests__/unit/database/services/role.test.ts | 1 - bot/package.json | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/__tests__/unit/database/services/channel.test.ts b/bot/__tests__/unit/database/services/channel.test.ts index b23adc78..830855d7 100644 --- a/bot/__tests__/unit/database/services/channel.test.ts +++ b/bot/__tests__/unit/database/services/channel.test.ts @@ -8,7 +8,6 @@ import { insertChannels, } from '../../../fixtures/channel.fixture' import { channelService } from '../../../../src/database/services' -import config from '../../../../src/config' setupTestDB() describe('channel service', () => { diff --git a/bot/__tests__/unit/database/services/guildMember.test.ts b/bot/__tests__/unit/database/services/guildMember.test.ts index af6f1c04..b85da3bd 100644 --- a/bot/__tests__/unit/database/services/guildMember.test.ts +++ b/bot/__tests__/unit/database/services/guildMember.test.ts @@ -7,7 +7,6 @@ import { guildMember3, } from '../../../fixtures/guildMember.fixture' import { guildMemberService } from '../../../../src/database/services' -import config from '../../../../src/config' setupTestDB() describe('guildMember service', () => { diff --git a/bot/__tests__/unit/database/services/role.test.ts b/bot/__tests__/unit/database/services/role.test.ts index fa8a8e0d..52583603 100644 --- a/bot/__tests__/unit/database/services/role.test.ts +++ b/bot/__tests__/unit/database/services/role.test.ts @@ -8,7 +8,6 @@ import { insertRoles, } from '../../../fixtures/role.fixture' import { roleService } from '../../../../src/database/services' -import config from '../../../../src/config' setupTestDB() describe('role service', () => { diff --git a/bot/package.json b/bot/package.json index ea93de11..9a5b6df5 100644 --- a/bot/package.json +++ b/bot/package.json @@ -12,7 +12,7 @@ "test:ci": "jest --ci --detectOpenHandles", "lint": "eslint **/*.ts", "lint-fix": "eslint --fix **/*.ts", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", + "format": "prettier --write \"src/**/*.ts\" \"types/*.ts\" \"__tests__/**/*.ts\"", "dev-migrate:create": "migrate create --template-file ./src/migrations/utils/template.ts --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"", "dev-migrate:up": "migrate --migrations-dir=\"./src/migrations/db\" up --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"", "dev-migrate:down": "migrate --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\" down",