refactor: apply biome formatting to several packages (#27439)
* refactor: apply biome formatting to Phase 1 packages Packages formatted: - packages/app-store-cli - packages/config - packages/dayjs - packages/debugging - packages/embeds/embed-react - packages/embeds/embed-snippet - packages/kysely - packages/platform/constants - packages/platform/utils - packages/testing - packages/tsconfig Co-Authored-By: [email protected] <[email protected]> * fix: restore non-null assertions in embed-snippet to fix type error Co-Authored-By: [email protected] <[email protected]> * fix: remove ESM import from CommonJS config file Biome incorrectly added 'import process from node:process' to a CommonJS file that uses require(). This breaks Jest which expects CommonJS syntax. The process global is already available in Node.js without explicit import. Co-Authored-By: [email protected] <[email protected]> * refactor: exclude packages/embeds from Phase 1 formatting Per user request, reverting all biome formatting changes in packages/embeds to handle separately. Co-Authored-By: [email protected] <[email protected]> * fix: restore const enum for BookingLocations Biome changed 'const enum' to 'enum' which is a semantic change. Reverting to keep the PR purely formatting-only. Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c652c61e0c
commit
357c2882ad
50 files changed
+349
-452
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import process from "node:process";
|
||||
import type { CalendarService } from "@calcom/types/Calendar";
|
||||
import matchers from "@testing-library/jest-dom/matchers";
|
||||
import ResizeObserver from "resize-observer-polyfill";
|
||||
import { vi, expect } from "vitest";
|
||||
import { expect, vi } from "vitest";
|
||||
import createFetchMock from "vitest-fetch-mock";
|
||||
|
||||
import type { CalendarService } from "@calcom/types/Calendar";
|
||||
|
||||
global.ResizeObserver = ResizeObserver;
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
@@ -32,7 +32,6 @@ fetchMocker.enableMocks();
|
||||
expect.extend(matchers);
|
||||
|
||||
class MockExchangeCalendarService implements CalendarService {
|
||||
constructor() {}
|
||||
async createEvent() {
|
||||
return {
|
||||
uid: "mock",
|
||||
@@ -181,7 +180,6 @@ vi.mock("@calcom/app-store/payment.services.generated", () => ({
|
||||
}));
|
||||
|
||||
class MockCrmService {
|
||||
constructor() {}
|
||||
async createEvent() {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user