diff --git a/.eslintrc.json b/.eslintrc.json index 888dda0f..eff0295f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,6 +29,7 @@ "@typescript-eslint/no-unused-vars": [ "warn", { + "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" } ], diff --git a/src/driver/kwin_mouse_poller.ts b/src/driver/kwin_mouse_poller.ts index b89eb525..7755ccea 100644 --- a/src/driver/kwin_mouse_poller.ts +++ b/src/driver/kwin_mouse_poller.ts @@ -36,6 +36,7 @@ export default class KWinMousePoller { this.qml.mousePoller.interval = 0; this.qml.mousePoller.onNewData.connect((sourceName: string, data: any) => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access this.cmdResult = data["exit code"] === 0 ? data["stdout"] : null; this.qml.mousePoller.disconnectSource(KWinMousePoller.COMMAND); diff --git a/src/extern/global.d.ts b/src/extern/global.d.ts index a5c5a8ac..d390be79 100644 --- a/src/extern/global.d.ts +++ b/src/extern/global.d.ts @@ -3,6 +3,8 @@ // // SPDX-License-Identifier: MIT +/* eslint-disable @typescript-eslint/ban-types */ + declare namespace Bismuth { export namespace Qml { export interface Main { diff --git a/src/extern/plasma.d.ts b/src/extern/plasma.d.ts index d0e39aad..43e2fb3b 100644 --- a/src/extern/plasma.d.ts +++ b/src/extern/plasma.d.ts @@ -3,6 +3,8 @@ // // SPDX-License-Identifier: MIT +/* eslint-disable @typescript-eslint/ban-types */ + declare namespace Plasma { namespace TaskManager { /* reference: https://github.com/KDE/plasma-workspace/blob/master/libtaskmanager/activityinfo.h */ diff --git a/src/extern/qt.d.ts b/src/extern/qt.d.ts index fa95cee2..2b2c0885 100644 --- a/src/extern/qt.d.ts +++ b/src/extern/qt.d.ts @@ -3,6 +3,8 @@ // // SPDX-License-Identifier: MIT +/* eslint-disable @typescript-eslint/ban-types */ + // eslint-disable-next-line @typescript-eslint/no-empty-interface interface QByteArray { /* keep it empty for now */ diff --git a/src/util/timer.ts b/src/util/timer.ts index af336137..fe9d80e6 100644 --- a/src/util/timer.ts +++ b/src/util/timer.ts @@ -2,6 +2,8 @@ // // SPDX-License-Identifier: MIT +/* eslint-disable @typescript-eslint/ban-types */ + /** * @module * This module basically reimplements standard JS setTimeout function @@ -72,6 +74,7 @@ export class TimersPool { ]); } + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const timer: QQmlTimer = this.timers.pop() || Qt.createQmlObject("import QtQuick 2.0; Timer {}", this.scriptRoot);