Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix liniting

haxzief5df207db22d
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 98475b507..cb2c84d5c 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1 +1 @@
-pnpm test
+pnpm lint-staged
diff --git a/ts/.prettierrc b/.prettierrc
similarity index 100%
rename from ts/.prettierrc
rename to .prettierrc
diff --git a/ts/eslint.config.mjs b/eslint.config.mjs
similarity index 100%
rename from ts/eslint.config.mjs
rename to eslint.config.mjs
diff --git a/package.json b/package.json
index 78ea2a8cb..5597b76cf 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"build:packages": "turbo build --filter=./ts/packages/**",
"test": "turbo test --filter=./ts/packages/**",
"test:ui": "vitest --ui",
- "lint": "eslint . --ext .ts,.tsx",
+ "lint": "eslint ts/packages --ext .ts,.tsx",
"lint:packages": "eslint ts/packages --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"lint:fix:packages": "eslint ts/packages --ext .ts,.tsx --fix",
diff --git a/ts/examples/vercel/src/types.ts b/ts/examples/vercel/src/types.ts
index bbf0a8f4f..43df04cfd 100644
--- a/ts/examples/vercel/src/types.ts
+++ b/ts/examples/vercel/src/types.ts
@@ -5,4 +5,4 @@ export const MessageRoles = {
} as const;
export type MessageRole = (typeof MessageRoles)[keyof typeof MessageRoles];
-export type Message = { role: MessageRole; content: string | any };
+export type Message = { role: MessageRole; content: string | unknown };
diff --git a/ts/packages/core/src/models/Toolkits.ts b/ts/packages/core/src/models/Toolkits.ts
index 9ef013c02..faab1bf9b 100644
--- a/ts/packages/core/src/models/Toolkits.ts
+++ b/ts/packages/core/src/models/Toolkits.ts
@@ -10,7 +10,6 @@ import {
ToolkitRetrieveCategoriesResponse,
ToolkitRetrieveCategoriesResponseSchema,
ToolkitCategorySchema,
- ToolkitAuthField,
ToolkitAuthFieldsResponse,
} from '../types/toolkit.types';
import { ComposioToolkitFetchError, ComposioToolkitNotFoundError } from '../errors';
diff --git a/ts/packages/core/src/types/tool.types.ts b/ts/packages/core/src/types/tool.types.ts
index a47111aa0..85627b701 100644
--- a/ts/packages/core/src/types/tool.types.ts
+++ b/ts/packages/core/src/types/tool.types.ts
@@ -1,4 +1,4 @@
-import { nullable, z } from 'zod';
+import { z } from 'zod';
/**
* Toolkit is the collection of tools,
diff --git a/ts/packages/core/src/utils/jsonSchema.ts b/ts/packages/core/src/utils/jsonSchema.ts
index 6e0485cb2..566e8fc1c 100644
--- a/ts/packages/core/src/utils/jsonSchema.ts
+++ b/ts/packages/core/src/utils/jsonSchema.ts
@@ -1,4 +1,4 @@
-import { z, ZodObject, ZodTypeAny } from 'zod';
+import { z } from 'zod';
import { JsonSchemaToZodError } from '../errors';
import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
diff --git a/ts/packages/providers/openai/src/OpenAIResponsesProvider.ts b/ts/packages/providers/openai/src/OpenAIResponsesProvider.ts
index 5acc4a5e4..2f1092c5b 100644
--- a/ts/packages/providers/openai/src/OpenAIResponsesProvider.ts
+++ b/ts/packages/providers/openai/src/OpenAIResponsesProvider.ts
@@ -9,7 +9,6 @@ import { BaseNonAgenticProvider, removeNonRequiredProperties } from '@composio/c
import { Tool, ToolExecuteParams } from '@composio/core';
import { ExecuteToolModifiers } from '@composio/core';
import { ExecuteToolFnOptions } from '@composio/core';
-import { Stream } from 'openai/streaming';
export type OpenAiTool = OpenAI.Responses.FunctionTool;
export type OpenAiToolCollection = Array<OpenAiTool>;
diff --git a/ts/tsconfig.base.json b/tsconfig.base.json
similarity index 100%
rename from ts/tsconfig.base.json
rename to tsconfig.base.json