Apply new ESLint rules to legacy code

This commit is contained in:
Chris Svenningsen 2020-09-08 17:46:29 -07:00 committed by Scott Nonnenberg
parent 91cf075697
commit 8a2c17f65f
70 changed files with 376 additions and 516 deletions

View file

@ -5,8 +5,6 @@
// eslint-disable-next-line func-names
(function() {
'use strict';
window.Whisper = window.Whisper || {};
window.Whisper.ReactWrapperView = Backbone.View.extend({
@ -66,12 +64,13 @@
});
},
augmentProps(props) {
return Object.assign({}, props, {
return {
...props,
close: () => {
this.remove();
},
i18n,
});
};
},
remove() {
if (this.onClose) {