Re-enable unbound-method

This commit is contained in:
Oliver Blanthorn 2020-06-19 13:31:00 +01:00
parent beebb6ffe5
commit 3155301bb9
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ module.exports = {
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "off", //"error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"arrow-parens": [

View file

@ -62,12 +62,12 @@ class KeyCanceller {
this.keyUp.push(ke)
}
cancelKeyPress(ke: KeyboardEvent) {
public cancelKeyPress = (ke: KeyboardEvent) => {
if (!ke.isTrusted) return
this.cancelKey(ke, this.keyPress)
}
cancelKeyUp(ke: KeyboardEvent) {
public cancelKeyUp = (ke: KeyboardEvent) => {
if (!ke.isTrusted) return
this.cancelKey(ke, this.keyUp)
}