Skip to content

Commit a276e43

Browse files
committed
chore: update linter config + format
1 parent eab939e commit a276e43

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

biome.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
33
"assist": {
44
"actions": {
55
"source": {
@@ -20,7 +20,7 @@
2020
"linter": {
2121
"enabled": true,
2222
"rules": {
23-
"recommended": true,
23+
"preset": "recommended",
2424
"complexity": {
2525
"useLiteralKeys": {
2626
"level": "off"
@@ -81,7 +81,8 @@
8181
"**/*.json",
8282
"**/*.ts",
8383
"!**/dist/**/*",
84-
"!**/node_modules/**/*"
84+
"!**/node_modules/**/*",
85+
"!**/.drizzle/meta/**/*"
8586
]
8687
}
8788
}

bots/discord/src/commands/utilities/remind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { EmbedBuilder } from 'discord.js'
22
import Command from '$/classes/Command'
3+
import CommandError, { CommandErrorType } from '$/classes/CommandError'
34
import { config, database } from '$/context'
45
import { reminders } from '$/database/schemas'
56
import { applyCommonEmbedStyles } from '$/utils/discord/embeds'
67
import { durationToString, parseDuration } from '$/utils/duration'
7-
import CommandError, { CommandErrorType } from '$/classes/CommandError'
88

99
const MIN_DURATION = parseDuration('1m')
1010
const MAX_DURATION = parseDuration('1y')

bots/discord/src/context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { join } from 'path'
88
import { __getConfig, config } from './config'
99
import * as schemas from './database/schemas'
1010
import type { default as Command, CommandOptionsOptions, CommandType } from './classes/Command'
11-
export { config, __getConfig }
11+
12+
export { __getConfig, config }
1213

1314
export const logger = createLogger({
1415
level: config.logLevel === 'none' ? Number.MAX_SAFE_INTEGER : config.logLevel,

bots/discord/src/events/discord/guildMemberAdd/applyRolePresets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { and, eq, gt } from 'drizzle-orm'
2+
import { logger } from '$/context'
23
import { appliedPresets } from '$/database/schemas'
34
import { on, withContext } from '$/utils/discord/events'
45
import { applyRolesUsingPreset } from '$/utils/discord/rolePresets'
5-
import { logger } from '$/context'
66

77
withContext(on, 'guildMemberAdd', async ({ database }, member) => {
88
const applieds = await database.query.appliedPresets.findMany({

0 commit comments

Comments
 (0)