build: 🚨 disable linting where we cannot do anyshing in the short term

This commit is contained in:
Mikhail Zolotukhin 2021-09-17 23:25:04 +03:00
parent 0f43507bcb
commit 9710c664ae
6 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,7 @@
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],

View File

@ -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);

View File

@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: MIT
/* eslint-disable @typescript-eslint/ban-types */
declare namespace Bismuth {
export namespace Qml {
export interface Main {

View File

@ -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 */

2
src/extern/qt.d.ts vendored
View File

@ -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 */

View File

@ -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);