Merge pull request #3470 from overleaf/eslint

Upgrade and configure ESLint

GitOrigin-RevId: ad5aeaf85e72c847a125ff3a9db99a12855e38aa
This commit is contained in:
Alf Eaton
2020-12-16 03:08:28 +00:00
committed by Copybot
parent 1fcf94c3b9
commit 2ff1cf43d6
264 changed files with 3356 additions and 6520 deletions
@@ -22,7 +22,7 @@
// Remove a listener for the foo event with the bar namespace: .off 'foo.bar'
let EventEmitter
export default (EventEmitter = class EventEmitter {
export default EventEmitter = class EventEmitter {
on(event, callback) {
let namespace
if (!this.events) {
@@ -76,4 +76,4 @@ export default (EventEmitter = class EventEmitter {
emit(...args) {
return this.trigger(...Array.from(args || []))
}
})
}