style: lint

This commit is contained in:
手瓜一十雪
2025-02-03 14:29:38 +08:00
parent ab5bbdedac
commit da7b2c8297
7 changed files with 36 additions and 26 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
@@ -135,7 +136,8 @@ export class WindowsTerminal extends Terminal {
* openpty
*/
public static open(options?: IPtyOpenOptions): void {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public static open(_options?: IPtyOpenOptions): void {
throw new Error('open() not supported on windows, use Fork() instead.');
}
@@ -176,6 +178,8 @@ export class WindowsTerminal extends Terminal {
});
}
// @ts-expect-error - This is a private method that is not part of the public API.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
private _deferNoArgs<A>(deferredFn: () => void): void {
// If the terminal is ready, execute.
if (this._isReady) {