mirror of https://github.com/buster-so/buster.git
fix broken linting
This commit is contained in:
parent
64def9918d
commit
5dd7b20f25
|
@ -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(),
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -3,5 +3,17 @@
|
|||
"extends": ["../../biome.json"],
|
||||
"files": {
|
||||
"include": ["src/**/*"]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"include": ["**/scripts/**/*", "**/script/**/*"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"suspicious": {
|
||||
"noConsoleLog": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue