Fix all linter errors.
This commit is contained in:
@@ -52,7 +52,10 @@ export class PopoverComponent implements OnInit {
|
||||
|
||||
@ViewChild('tab') selectedTab: Tab;
|
||||
|
||||
/* tslint:disable:variable-name: It is an enum type. So it can start with uppercase. */
|
||||
/* tslint:disable:no-unused-variable: It is used in the template. */
|
||||
private TabName = TabName;
|
||||
/* tslint:enable:no-unused-variable tslint:enable:variable-name */
|
||||
private activeTab: TabName;
|
||||
|
||||
constructor() { }
|
||||
|
||||
@@ -65,7 +65,6 @@ export class KeypressTabComponent implements OnInit, Tab {
|
||||
// Restore scancode
|
||||
this.scanCode = keystrokeAction.scancode || 0;
|
||||
|
||||
|
||||
let leftModifiersLength: number = this.leftModifiers.length;
|
||||
|
||||
// Restore modifiers
|
||||
@@ -131,12 +130,16 @@ export class KeypressTabComponent implements OnInit, Tab {
|
||||
}
|
||||
|
||||
// TODO: change to the correct type when the wrapper has added it.
|
||||
/* tslint:disable:no-unused-variable: It is used in the template. */
|
||||
private onLongpressChange(event: any) {
|
||||
/* tslint:enable:no-unused-variable: */
|
||||
this.selectedLongPressIndex = +event.value;
|
||||
}
|
||||
|
||||
// TODO: change to the correct type when the wrapper has added it.
|
||||
/* tslint:disable:no-unused-variable: It is used in the template. */
|
||||
private onScancodeChange(event: any) {
|
||||
/* tslint:enable:no-unused-variable */
|
||||
this.scanCode = +event.value;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ export class LayerTabComponent implements OnInit, Tab {
|
||||
private toggle: boolean;
|
||||
private layer: LayerName;
|
||||
|
||||
/* tslint:disable:no-unused-variable: They're used in the template */
|
||||
private toggleData: Array<Select2OptionData> = [
|
||||
{
|
||||
id: 'false',
|
||||
@@ -48,6 +49,7 @@ export class LayerTabComponent implements OnInit, Tab {
|
||||
text: 'Mouse'
|
||||
}
|
||||
];
|
||||
/* tslint:enable:no-unused-variable */
|
||||
|
||||
constructor() {
|
||||
this.toggle = false;
|
||||
@@ -80,12 +82,16 @@ export class LayerTabComponent implements OnInit, Tab {
|
||||
}
|
||||
|
||||
// TODO: change to the correct type when the wrapper has added it.
|
||||
/* tslint:disable:no-unused-variable: This function is used in the template */
|
||||
private toggleChanged(event: any) {
|
||||
/* tslint:enable:no-unused-variable */
|
||||
this.toggle = event.value;
|
||||
}
|
||||
|
||||
// TODO: change to the correct type when the wrapper has added it.
|
||||
/* tslint:disable:no-unused-variable: This function is used in the template */
|
||||
private layerChanged(event: any) {
|
||||
/* tslint:enable:no-unused-variable */
|
||||
this.layer = +event.value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,10 @@ import { Component, OnInit, OnChanges, Input } from '@angular/core';
|
||||
|
||||
import {MacroAction} from '../../../../../config-serializer/config-items/MacroAction';
|
||||
import {DelayMacroAction} from '../../../../../config-serializer/config-items/DelayMacroAction';
|
||||
import {HoldKeyMacroAction} from '../../../../../config-serializer/config-items/HoldKeyMacroAction';
|
||||
import {HoldModifiersMacroAction} from '../../../../../config-serializer/config-items/HoldModifiersMacroAction';
|
||||
import {HoldMouseButtonsMacroAction} from '../../../../../config-serializer/config-items/HoldMouseButtonsMacroAction';
|
||||
import {MoveMouseMacroAction} from '../../../../../config-serializer/config-items/MoveMouseMacroAction';
|
||||
import {PressKeyMacroAction} from '../../../../../config-serializer/config-items/PressKeyMacroAction';
|
||||
import {PressModifiersMacroAction} from '../../../../../config-serializer/config-items/PressModifiersMacroAction';
|
||||
import {PressMouseButtonsMacroAction} from '../../../../../config-serializer/config-items/PressMouseButtonsMacroAction';
|
||||
import {ReleaseKeyMacroAction} from '../../../../../config-serializer/config-items/ReleaseKeyMacroAction';
|
||||
import {ReleaseModifiersMacroAction} from '../../../../../config-serializer/config-items/ReleaseModifiersMacroAction';
|
||||
import {ReleaseMouseButtonsMacroAction} from '../../../../../config-serializer/config-items/ReleaseMouseButtonsMacroAction';
|
||||
import {ScrollMouseMacroAction} from '../../../../../config-serializer/config-items/ScrollMouseMacroAction';
|
||||
import {TextMacroAction} from '../../../../../config-serializer/config-items/TextMacroAction';
|
||||
|
||||
|
||||
@@ -17,7 +17,10 @@ export class MouseTabComponent implements OnInit, Tab {
|
||||
|
||||
private mouseActionParam: MouseActionParam;
|
||||
private selectedPageIndex: number;
|
||||
/* tslint:disable:variable-name: It is an enum type. So it can start with uppercase. */
|
||||
/* tslint:disable:no-unused-variable: It is used in the template. */
|
||||
private MouseActionParam = MouseActionParam;
|
||||
/* tslint:enable:no-unused-variable tslint:enable:variable-name */
|
||||
|
||||
private pages: string[];
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {Component, OnInit } from '@angular/core';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
import {KeyAction} from '../../../../../config-serializer/config-items/KeyAction';
|
||||
import {NoneAction} from '../../../../../config-serializer/config-items/NoneAction';
|
||||
|
||||
@Component({
|
||||
@@ -19,7 +18,7 @@ export class NoneTabComponent implements OnInit, Tab {
|
||||
return true;
|
||||
}
|
||||
|
||||
fromKeyAction(keyAction: KeyAction): boolean {
|
||||
fromKeyAction(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ export class CaptureKeystrokeButtonComponent implements OnInit {
|
||||
|
||||
ngOnInit() { }
|
||||
|
||||
private start(): void {
|
||||
start(): void {
|
||||
this.record = true;
|
||||
}
|
||||
|
||||
private stop(): void {
|
||||
stop(): void {
|
||||
this.record = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user