Skip to content

Commit 4c70038

Browse files
committed
chore: remove unnecessary ESLint ignore comments
1 parent cdee0ca commit 4c70038

File tree

7 files changed

+0
-10
lines changed

7 files changed

+0
-10
lines changed

lib/commands/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ type KeyAction = {
9494
down?: boolean,
9595
}
9696

97-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9897
export async function execute(this: NovaWindowsDriver, script: string, args: any[]) {
9998
if (script.startsWith(PLATFORM_COMMAND_PREFIX)) {
10099
script = script.replace(PLATFORM_COMMAND_PREFIX, '').trim();

lib/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type Commands = {
2222
};
2323

2424
declare module '../driver' {
25-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
2625
interface NovaWindowsDriver extends Commands {}
2726
}
2827

lib/commands/powershell.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ export async function startPowerShellSession(this: NovaWindowsDriver): Promise<v
1515
powerShell.stdout.setEncoding('utf8');
1616
powerShell.stdout.setEncoding('utf8');
1717

18-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1918
powerShell.stdout.on('data', (chunk: any) => {
2019
this.powerShellStdOut += chunk.toString();
2120
});
2221

23-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2422
powerShell.stderr.on('data', (chunk: any) => {
2523
this.powerShellStdErr += chunk.toString();
2624
});
@@ -88,7 +86,6 @@ export async function sendPowerShellCommand(this: NovaWindowsDriver, command: st
8886
powerShell.stdin.write(`${command}\n`);
8987
powerShell.stdin.write(/* ps1 */ `Write-Output $([char]0x${magicNumber.toString(16)})\n`);
9088

91-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9289
const onData: Parameters<typeof powerShell.stdout.on>[1] = ((chunk: any) => {
9390
const magicChar = String.fromCharCode(magicNumber);
9491
if (chunk.toString().includes(magicChar)) {

lib/enums.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] exte
44

55
type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>> | T
66

7-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
87
type AllFlagsValue<N extends number, A extends any[] = []> = [N] extends [Partial<A>['length']] ? A['length'] : UnionFlags<N, [0, ...A, ...A]>;
9-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
108
type UnionFlags<N extends number, A extends any[] = []> = IntRange<0, AllFlagsValue<N, A>>;
119

1210
export type Enum<T> = T[keyof T];

lib/powershell/conditions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ export class FalseCondition extends Condition {
162162
}
163163
}
164164

165-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
166165
function assertPSObjectType(obj: PSObject, type: new (...args: any[]) => PSObject) {
167166
if (!(obj instanceof type)) {
168167
throw new errors.InvalidArgumentError(`Property expected type ${type.name} but got ${(obj as object)?.constructor.name}.`);

lib/powershell/core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export function pwsh(strings: TemplateStringsArray, ...values: string[]): string
2020
export function pwsh$(literals: TemplateStringsArray, ...substitutions: number[]) {
2121
const templateInstance = $(literals, ...substitutions);
2222
const defaultFormat = templateInstance.format.bind(templateInstance);
23-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2423
templateInstance.format = (...args: any[]) => {
2524
const command = defaultFormat(...args);
2625
return /* ps1 */ `(Invoke-Expression -Command ([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${btoa(command)}'))))`;

lib/util.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export class DeferredStringTemplate {
4141
});
4242
}
4343

44-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4544
format(...args: any[]): string {
4645
const out: string[] = [];
4746
for (let i = 0, k = 0; i < this.literals.length; i++, k++) {

0 commit comments

Comments
 (0)