From a80c4ff4bf0bb9cc3a8d40355d44267392ec1785 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Wed, 1 May 2024 18:43:30 -0700 Subject: [PATCH] chore: lint files --- langchain-core/src/utils/async_caller.ts | 4 +++- langchain-core/tsconfig.cjs.json | 4 +--- libs/langchain-community/src/graphs/neo4j_graph.ts | 7 ++++++- libs/langchain-community/src/vectorstores/neo4j_vector.ts | 6 +++++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/langchain-core/src/utils/async_caller.ts b/langchain-core/src/utils/async_caller.ts index 9de4003e16f2..f7399f58692e 100644 --- a/langchain-core/src/utils/async_caller.ts +++ b/langchain-core/src/utils/async_caller.ts @@ -95,7 +95,9 @@ export class AsyncCaller { params.onFailedAttempt ?? defaultFailedAttemptHandler; const PQueue = "default" in PQueueMod ? PQueueMod.default : PQueueMod; - this.queue = new (PQueue as typeof import("p-queue")["default"])({ concurrency: this.maxConcurrency }); + this.queue = new (PQueue as typeof import("p-queue")["default"])({ + concurrency: this.maxConcurrency, + }); } // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/langchain-core/tsconfig.cjs.json b/langchain-core/tsconfig.cjs.json index d43fa48e753d..64152eb97732 100644 --- a/langchain-core/tsconfig.cjs.json +++ b/langchain-core/tsconfig.cjs.json @@ -7,8 +7,6 @@ "node_modules", "dist", "docs", - "**/tests", - "src/language_models/base.ts", - "src/utils/tiktoken.ts" + "**/tests" ] } \ No newline at end of file diff --git a/libs/langchain-community/src/graphs/neo4j_graph.ts b/libs/langchain-community/src/graphs/neo4j_graph.ts index fcff40708b2d..356ca974b7ef 100644 --- a/libs/langchain-community/src/graphs/neo4j_graph.ts +++ b/libs/langchain-community/src/graphs/neo4j_graph.ts @@ -1,4 +1,9 @@ -import neo4j, { RoutingControl, type Record as Neo4jRecord, type Driver as Neo4jDriver, type Path as Neo4jPath } from "neo4j-driver"; +import neo4j, { + RoutingControl, + type Record as Neo4jRecord, + type Driver as Neo4jDriver, + type Path as Neo4jPath, +} from "neo4j-driver"; import { insecureHash } from "@langchain/core/utils/hash"; import { GraphDocument } from "./graph_document.js"; diff --git a/libs/langchain-community/src/vectorstores/neo4j_vector.ts b/libs/langchain-community/src/vectorstores/neo4j_vector.ts index cd78616c56c9..343e3df0d144 100644 --- a/libs/langchain-community/src/vectorstores/neo4j_vector.ts +++ b/libs/langchain-community/src/vectorstores/neo4j_vector.ts @@ -1,4 +1,8 @@ -import neo4j, { type Driver as Neo4jDriver, type Record as Neo4jRecord, type Path as Neo4jPath } from "neo4j-driver"; +import neo4j, { + type Driver as Neo4jDriver, + type Record as Neo4jRecord, + type Path as Neo4jPath, +} from "neo4j-driver"; import * as uuid from "uuid"; import type { EmbeddingsInterface } from "@langchain/core/embeddings"; import { VectorStore } from "@langchain/core/vectorstores";