fix broken linting

This commit is contained in:
Nate Kelley 2025-07-17 13:16:40 -06:00
parent 64def9918d
commit 5dd7b20f25
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 22 additions and 19 deletions

View File

@ -1,4 +1,4 @@
import { randomUUID } from 'crypto';
import { randomUUID } from 'node:crypto';
import * as db from '@buster/database';
import { describe, expect, it, vi } from 'vitest';
import {
@ -297,11 +297,8 @@ describe('user-organizations', () => {
limit: vi.fn().mockImplementation(() => {
// Check if we're querying users or organizations
const lastCall = mockDb.from.mock.lastCall;
if (lastCall && lastCall[0] === db.users) {
return Promise.resolve([]);
} else {
if (lastCall && lastCall[0] === db.users) return Promise.resolve([]);
return Promise.resolve([mockOrg]);
}
}),
insert: vi.fn().mockReturnThis(),
values: vi.fn().mockReturnThis(),
@ -352,11 +349,8 @@ describe('user-organizations', () => {
limit: vi.fn().mockImplementation(() => {
// Check if we're querying users or organizations
const lastCall = mockDb.from.mock.lastCall;
if (lastCall && lastCall[0] === db.users) {
return Promise.resolve([mockExistingUser]);
} else {
if (lastCall && lastCall[0] === db.users) return Promise.resolve([mockExistingUser]);
return Promise.resolve([mockOrg]);
}
}),
insert: vi.fn().mockReturnThis(),
values: vi.fn().mockReturnThis(),
@ -411,11 +405,8 @@ describe('user-organizations', () => {
limit: vi.fn().mockImplementation(() => {
// Check if we're querying users or organizations
const lastCall = mockDb.from.mock.lastCall;
if (lastCall && lastCall[0] === db.users) {
return Promise.resolve([]);
} else {
if (lastCall && lastCall[0] === db.users) return Promise.resolve([]);
return Promise.resolve([mockOrg]);
}
}),
insert: vi.fn().mockReturnThis(),
values: vi.fn().mockReturnThis(),

View File

@ -1,4 +1,4 @@
import { SQL } from 'drizzle-orm';
import type { SQL } from 'drizzle-orm';
import type { PgColumn, PgSelect } from 'drizzle-orm/pg-core';
import type { PaginatedResponse, PaginationMetadata } from './pagination.types';

View File

@ -3,5 +3,17 @@
"extends": ["../../biome.json"],
"files": {
"include": ["src/**/*"]
},
"overrides": [
{
"include": ["**/scripts/**/*", "**/script/**/*"],
"linter": {
"rules": {
"suspicious": {
"noConsoleLog": "off"
}
}
}
}
]
}