remove unneeded eslint ignores

This commit is contained in:
Patrick Erichsen 2024-08-16 10:42:12 -07:00
parent ab66a06397
commit c818e2d44b
9 changed files with 7 additions and 16 deletions

View file

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { IDE, SlashCommand } from "../..";
import * as fs from "fs/promises";
import * as path from "path";

View file

@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { jest } from "@jest/globals";
import {
insertMockChunks,

View file

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { SiteIndexingConfig } from "../../index.js";
const preIndexedDocs: Record<

View file

@ -37,9 +37,7 @@ class GeminiEmbeddingsProvider extends BaseEmbeddingsProvider {
requests,
}),
headers: {
// eslint-disable-next-line @typescript-eslint/naming-convention
"x-goog-api-key": this.options.apiKey,
// eslint-disable-next-line @typescript-eslint/naming-convention
"Content-Type": "application/json",
},
}),

View file

@ -19,13 +19,10 @@ export const allEmbeddingsProviders: Record<
EmbeddingsProviderConstructor
> = {
ollama: OllamaEmbeddingsProvider,
// eslint-disable-next-line @typescript-eslint/naming-convention
"transformers.js": TransformersJsEmbeddingsProvider,
openai: OpenAIEmbeddingsProvider,
cohere: CohereEmbeddingsProvider,
// eslint-disable-next-line @typescript-eslint/naming-convention
"free-trial": FreeTrialEmbeddingsProvider,
// eslint-disable-next-line @typescript-eslint/naming-convention
"huggingface-tei": HuggingFaceTEIEmbeddingsProvider,
gemini: GeminiEmbeddingsProvider,
"continue-proxy": ContinueProxyEmbeddingsProvider,

View file

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import crypto from "node:crypto";
import * as fs from "node:fs";
import { open, type Database } from "sqlite";

View file

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import path from "path";
import { fileURLToPath } from "url";

View file

@ -19,7 +19,10 @@ class WatsonX extends BaseLLM {
super(options);
}
async getBearerToken(): Promise<{ token: string; expiration: number }> {
if (this.watsonxUrl !== null && this.watsonxUrl.includes("cloud.ibm.com")) {
if (
this.watsonxUrl !== null &&
this.watsonxUrl!.includes("cloud.ibm.com")
) {
// watsonx SaaS
const wxToken = await (
await fetch(

View file

@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { AutocompleteInput } from "../autocomplete/completionProvider.js";
import { ProfileDescription } from "../config/ConfigHandler.js";
import type { AutocompleteInput } from "../autocomplete/completionProvider";
import { ProfileDescription } from "../config/ConfigHandler";
import type {
BrowserSerializedContinueConfig,
ChatMessage,
@ -16,7 +15,7 @@ import type {
SerializedContinueConfig,
SessionInfo,
SiteIndexingConfig,
} from "../index.js";
} from "../";
export type ProtocolGeneratorType<T> = AsyncGenerator<{
done?: boolean;