feat: Introduce biome (#25664)
* Configure biome * Fix companion build * fix: remove generated files from formatter ignore list to enable proper formatting Co-Authored-By: Volnei Munhoz <[email protected]> * fix: add explicit stripe dependency to @calcom/features to fix type resolution Co-Authored-By: Volnei Munhoz <[email protected]> * fix: rename const require to nodeRequire in generate-swagger.ts to avoid TypeScript reserved identifier conflict Co-Authored-By: Volnei Munhoz <[email protected]> * fix: add guard for document in makeBodyVisible to prevent test environment teardown errors Co-Authored-By: Volnei Munhoz <[email protected]> * fix: replace ESLint with Biome CLI in embed-code-generator.e2e.ts Co-Authored-By: Volnei Munhoz <[email protected]> * fix: address cubic review comments - Fix invalid --reporter-path Biome CLI option by using shell redirection - Fix packages/lib lint report filename (app-store.json -> lib.json) - Add typescript-eslint and eslint back to companion for lint:react-compiler - Add missing restricted import rules to biome.json: - packages/lib: add ../trpc/** and @trpc/server restrictions - packages/trpc: add ../apps/web/** restriction Co-Authored-By: Volnei Munhoz <[email protected]> * chore: regenerate companion bun.lock after adding eslint dependencies Co-Authored-By: Volnei Munhoz <[email protected]> * Remove remaining eslint things * add tailwind directives --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
80 files changed
+1024
-3946
No files matched your search
@@ -1,3 +0,0 @@
|
||||
import { nextJsConfig } from "@calcom/eslint-config/next-js";
|
||||
|
||||
export default nextJsConfig;
|
||||
@@ -6,11 +6,10 @@
|
||||
"dev": "PORT=5100 next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint ."
|
||||
"lint": "biome lint ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@calcom/atoms": "workspace:*",
|
||||
"@calcom/eslint-config": "workspace:*",
|
||||
"@prisma/client": "6.16.1",
|
||||
"next": "14.2.35",
|
||||
"prisma": "6.16.1",
|
||||
|
||||
@@ -11,9 +11,9 @@ import {
|
||||
import { generateGoogleCalendarAccessToken, generateZoomAccessToken } from "../../lib/integrations";
|
||||
|
||||
export default async function handler(req: NextApiRequest, res) {
|
||||
const isInvalid = req.query["invalid"] === "1";
|
||||
const userId = parseInt(req.query["userId"] as string);
|
||||
const appSlug = req.query["appSlug"];
|
||||
const isInvalid = req.query.invalid === "1";
|
||||
const userId = parseInt(req.query.userId as string, 10);
|
||||
const appSlug = req.query.appSlug;
|
||||
|
||||
try {
|
||||
let accessToken;
|
||||
|
||||
Reference in new issue
Block a user