Skip to content

Commit 46752fd

Browse files
committed
Temporarily silence @typescript-eslint/no-unused-vars errors
1 parent e20f849 commit 46752fd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

server/src/server.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,13 +734,15 @@ describe("Helper Functions", () => {
734734
});
735735

736736
it("should correctly identify built-in functions", () => {
737+
/* eslint-disable @typescript-eslint/no-unused-vars */
737738
const builtIns = [
738739
"list/map",
739740
"list/filter",
740741
"maybe/default",
741742
"result/bind",
742743
];
743744
const nonBuiltIns = ["custom/function", "user/defined", "random/name"];
745+
/* eslint-enable @typescript-eslint/no-unused-vars */
744746

745747
// This test would require access to the isBuiltInFunction helper
746748
// In a real implementation, you'd export it or test it indirectly

server/src/server.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ function validatePatternMatching(node: SyntaxNode): Diagnostic[] {
460460
});
461461
}
462462

463+
/* eslint-disable @typescript-eslint/no-unused-vars */
463464
function validateTypeConsistency(
464465
node: SyntaxNode,
465466
text: string,
@@ -491,6 +492,7 @@ function validateTypeConsistency(
491492
return diagnostics;
492493
});
493494
}
495+
/* eslint-enable @typescript-eslint/no-unused-vars */
494496

495497
function inferBasicType(node: SyntaxNode): string | null {
496498
switch (node.type) {
@@ -808,6 +810,7 @@ function getPatternMatchCompletions(): CompletionItem[] {
808810
});
809811
}
810812

813+
/* eslint-disable @typescript-eslint/no-unused-vars */
811814
function getRecordFieldCompletions(recordType?: string): CompletionItem[] {
812815
// In a real implementation, this would analyze the record type
813816
const commonFields = [
@@ -828,10 +831,13 @@ function getRecordFieldCompletions(recordType?: string): CompletionItem[] {
828831
documentation: `Access field: ${field}`,
829832
}));
830833
}
834+
/* eslint-enable @typescript-eslint/no-unused-vars */
831835

832836
function getFunctionCompletions(): CompletionItem[] {
833837
return BUILT_IN_FUNCTIONS.map((func) => {
838+
/* eslint-disable @typescript-eslint/no-unused-vars */
834839
const [module, name] = func.split("/");
840+
/* eslint-enable @typescript-eslint/no-unused-vars */
835841
return {
836842
label: func,
837843
kind: CompletionItemKind.Function,
@@ -1603,7 +1609,9 @@ export function setupServer() {
16031609

16041610
let hasConfigurationCapability = false;
16051611
let hasWorkspaceFolderCapability = false;
1612+
/* eslint-disable @typescript-eslint/no-unused-vars */
16061613
let hasDiagnosticRelatedInformationCapability = false;
1614+
/* eslint-enable @typescript-eslint/no-unused-vars */
16071615

16081616
connection.onInitialize(async (params: InitializeParams) => {
16091617
const capabilities = params.capabilities;
@@ -1673,9 +1681,11 @@ export function setupServer() {
16731681
);
16741682
}
16751683
if (hasWorkspaceFolderCapability) {
1684+
/* eslint-disable @typescript-eslint/no-unused-vars */
16761685
connection.workspace.onDidChangeWorkspaceFolders((_event) => {
16771686
connection.console.log("Workspace folder change event received.");
16781687
});
1688+
/* eslint-enable @typescript-eslint/no-unused-vars */
16791689
}
16801690
});
16811691

0 commit comments

Comments
 (0)