Skip to content

Commit

Permalink
fix: eslint-disable-next-line
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov committed Apr 2, 2024
1 parent b1c47db commit 08a1439
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import path from "path";
}
return result;
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function transformGrammarRule(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
rule: any,
propertyNames: string[],
transformProperty: (ruleProperty: string) => string,
Expand All @@ -62,8 +62,8 @@ import path from "path";
}
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function transformGrammarRepository(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
grammar: any,
propertyNames: string[],
transformProperty: (ruleProperty: string) => string,
Expand Down
4 changes: 2 additions & 2 deletions src/func/funcCompile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export async function funcCompile(args: {

// Create module
const logs: string[] = [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const mod = await CompilerModule({
wasmBinary: WasmBinary,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
printErr: (e: any) => {
logs.push(e);
},
Expand All @@ -97,9 +97,9 @@ export async function funcCompile(args: {
const configPointer = trackPointer(writeToCString(mod, configStr));

// FS emulation callback
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const callbackPtr = trackFunctionPointer(
mod.addFunction(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(_kind: any, _data: any, contents: any, error: any) => {
const kind: string = readFromCString(mod, _kind);
const data: string = readFromCString(mod, _data);
Expand Down
2 changes: 1 addition & 1 deletion src/grammar/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1135,14 +1135,14 @@ function throwMatchError(matchResult: MatchResult, path: string): never {
const interval = matchResult.getInterval();
const lc = interval.getLineAndColumn() as { lineNum: number; colNum: number };
const msg = interval.getLineAndColumnMessage();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const message =
path +
":" +
lc.lineNum +
":" +
lc.colNum +
": Syntax error: expected " +
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(matchResult as any).getExpectedText() +
" \n" +
msg;
Expand Down

0 comments on commit 08a1439

Please sign in to comment.