mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Re-enable unbound-method
This commit is contained in:
parent
beebb6ffe5
commit
3155301bb9
2 changed files with 3 additions and 3 deletions
|
@ -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": [
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue