Resolve tslint warnings.

This commit is contained in:
László Monda
2016-04-08 23:25:26 +02:00
parent 16e099d49f
commit 7d17cba390
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ enum KeyActionId {
PlayMacroAction = 8 PlayMacroAction = 8
} }
let KeyActionType = { let keyActionType = {
NoneAction : 'none', NoneAction : 'none',
KeystrokeAction : 'keystroke', KeystrokeAction : 'keystroke',
KeystrokeModifiersAction : 'keystrokeModifiers', KeystrokeModifiersAction : 'keystrokeModifiers',
+2 -2
View File
@@ -1,7 +1,7 @@
class NoneAction extends KeyAction { class NoneAction extends KeyAction {
_fromJsObject(jsObject: any): NoneAction { _fromJsObject(jsObject: any): NoneAction {
this.assertKeyActionType(jsObject, KeyActionType.NoneAction, 'NoneAction'); this.assertKeyActionType(jsObject, keyActionType.NoneAction, 'NoneAction');
return this; return this;
} }
@@ -12,7 +12,7 @@ class NoneAction extends KeyAction {
_toJsObject(): any { _toJsObject(): any {
return { return {
keyActionType: KeyActionType.NoneAction keyActionType: keyActionType.NoneAction
}; };
} }
+2 -1
View File
@@ -21,7 +21,8 @@
"no-unused-expression": true, "no-unused-expression": true,
"no-unused-variable": [ "no-unused-variable": [
true, true,
"check-parameters" "check-parameters",
{"ignore-pattern": "assert.*|keyActionType"}
], ],
"no-use-before-declare": true, "no-use-before-declare": true,
"no-var-keyword": true, "no-var-keyword": true,