build: update linting deps (#24461)

This commit is contained in:
Samuel Attard 2020-07-08 21:19:49 -07:00 committed by GitHub
parent 80a6adb597
commit ad16e6c647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 699 additions and 446 deletions

View file

@ -300,6 +300,10 @@ class ClientRequest extends Writable implements Electron.ClientRequest {
this._redirectPolicy = redirectPolicy;
}
get chunkedEncoding () {
return this._chunkedEncoding || false;
}
set chunkedEncoding (value: boolean) {
if (this._started) {
throw new Error('chunkedEncoding can only be set before the request is started');

View file

@ -1,6 +1,4 @@
'use strict';
/* global require */
// Monkey-patch the fs module.
require('electron/js2c/asar').wrapFsWithAsar(require('fs'));

View file

@ -196,8 +196,6 @@ export class WebViewImpl {
this.internalElement.contentWindow!
);
// ResizeObserver is a browser global not recognized by "standard".
/* globals ResizeObserver */
// TODO(zcbenz): Should we deprecate the "resize" event? Wait, it is not
// even documented.
this.resizeObserver = new ResizeObserver(this.onElementResize.bind(this));

View file

@ -1,5 +1,5 @@
/* eslint no-eval: "off" */
/* global binding, Buffer */
/* global binding */
import * as events from 'events';
const { EventEmitter } = events;