Skip to content

Commit c818e2d

Browse files
remove unneeded eslint ignores
1 parent ab66a06 commit c818e2d

File tree

9 files changed

+7
-16
lines changed

9 files changed

+7
-16
lines changed

core/commands/slash/onboard.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
21
import { IDE, SlashCommand } from "../..";
32
import * as fs from "fs/promises";
43
import * as path from "path";

core/indexing/FullTextSearchCodebaseIndex.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import { jest } from "@jest/globals";
42
import {
53
insertMockChunks,

core/indexing/docs/preIndexedDocs.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
21
import { SiteIndexingConfig } from "../../index.js";
32

43
const preIndexedDocs: Record<

core/indexing/embeddings/GeminiEmbeddingsProvider.ts

-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ class GeminiEmbeddingsProvider extends BaseEmbeddingsProvider {
3737
requests,
3838
}),
3939
headers: {
40-
// eslint-disable-next-line @typescript-eslint/naming-convention
4140
"x-goog-api-key": this.options.apiKey,
42-
// eslint-disable-next-line @typescript-eslint/naming-convention
4341
"Content-Type": "application/json",
4442
},
4543
}),

core/indexing/embeddings/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ export const allEmbeddingsProviders: Record<
1919
EmbeddingsProviderConstructor
2020
> = {
2121
ollama: OllamaEmbeddingsProvider,
22-
// eslint-disable-next-line @typescript-eslint/naming-convention
2322
"transformers.js": TransformersJsEmbeddingsProvider,
2423
openai: OpenAIEmbeddingsProvider,
2524
cohere: CohereEmbeddingsProvider,
26-
// eslint-disable-next-line @typescript-eslint/naming-convention
2725
"free-trial": FreeTrialEmbeddingsProvider,
28-
// eslint-disable-next-line @typescript-eslint/naming-convention
2926
"huggingface-tei": HuggingFaceTEIEmbeddingsProvider,
3027
gemini: GeminiEmbeddingsProvider,
3128
"continue-proxy": ContinueProxyEmbeddingsProvider,

core/indexing/refreshIndex.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
21
import crypto from "node:crypto";
32
import * as fs from "node:fs";
43
import { open, type Database } from "sqlite";

core/jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
21
import path from "path";
32
import { fileURLToPath } from "url";
43

core/llm/llms/WatsonX.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ class WatsonX extends BaseLLM {
1919
super(options);
2020
}
2121
async getBearerToken(): Promise<{ token: string; expiration: number }> {
22-
if (this.watsonxUrl !== null && this.watsonxUrl.includes("cloud.ibm.com")) {
22+
if (
23+
this.watsonxUrl !== null &&
24+
this.watsonxUrl!.includes("cloud.ibm.com")
25+
) {
2326
// watsonx SaaS
2427
const wxToken = await (
2528
await fetch(

core/protocol/core.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
import type { AutocompleteInput } from "../autocomplete/completionProvider.js";
3-
import { ProfileDescription } from "../config/ConfigHandler.js";
1+
import type { AutocompleteInput } from "../autocomplete/completionProvider";
2+
import { ProfileDescription } from "../config/ConfigHandler";
43
import type {
54
BrowserSerializedContinueConfig,
65
ChatMessage,
@@ -16,7 +15,7 @@ import type {
1615
SerializedContinueConfig,
1716
SessionInfo,
1817
SiteIndexingConfig,
19-
} from "../index.js";
18+
} from "../";
2019

2120
export type ProtocolGeneratorType<T> = AsyncGenerator<{
2221
done?: boolean;

0 commit comments

Comments
 (0)