Fix @typescript-eslint/unbound-method errors

This commit is contained in:
Labhansh Agrawal 2021-03-28 23:03:05 +05:30
parent ae70054e59
commit b9a52b06c7
6 changed files with 16 additions and 21 deletions

View file

@ -152,6 +152,7 @@ export default class Term extends React.PureComponent<TermProps> {
return event && (!props.webLinksActivationKey || event[`${props.webLinksActivationKey}Key`]);
};
// eslint-disable-next-line @typescript-eslint/unbound-method
this.term.attachCustomKeyEventHandler(this.keyboardHandler);
this.term.loadAddon(this.fitAddon);
this.term.loadAddon(this.searchAddon);