build: update linting deps (#24461)
This commit is contained in:
parent
80a6adb597
commit
ad16e6c647
7 changed files with 699 additions and 446 deletions
|
@ -300,6 +300,10 @@ class ClientRequest extends Writable implements Electron.ClientRequest {
|
||||||
this._redirectPolicy = redirectPolicy;
|
this._redirectPolicy = redirectPolicy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get chunkedEncoding () {
|
||||||
|
return this._chunkedEncoding || false;
|
||||||
|
}
|
||||||
|
|
||||||
set chunkedEncoding (value: boolean) {
|
set chunkedEncoding (value: boolean) {
|
||||||
if (this._started) {
|
if (this._started) {
|
||||||
throw new Error('chunkedEncoding can only be set before the request is started');
|
throw new Error('chunkedEncoding can only be set before the request is started');
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* global require */
|
|
||||||
|
|
||||||
// Monkey-patch the fs module.
|
// Monkey-patch the fs module.
|
||||||
require('electron/js2c/asar').wrapFsWithAsar(require('fs'));
|
require('electron/js2c/asar').wrapFsWithAsar(require('fs'));
|
||||||
|
|
|
@ -196,8 +196,6 @@ export class WebViewImpl {
|
||||||
this.internalElement.contentWindow!
|
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
|
// TODO(zcbenz): Should we deprecate the "resize" event? Wait, it is not
|
||||||
// even documented.
|
// even documented.
|
||||||
this.resizeObserver = new ResizeObserver(this.onElementResize.bind(this));
|
this.resizeObserver = new ResizeObserver(this.onElementResize.bind(this));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint no-eval: "off" */
|
/* eslint no-eval: "off" */
|
||||||
/* global binding, Buffer */
|
/* global binding */
|
||||||
import * as events from 'events';
|
import * as events from 'events';
|
||||||
|
|
||||||
const { EventEmitter } = events;
|
const { EventEmitter } = events;
|
||||||
|
|
27
package.json
27
package.json
|
@ -30,12 +30,12 @@
|
||||||
"colors": "^1.1.2",
|
"colors": "^1.1.2",
|
||||||
"dotenv-safe": "^4.0.4",
|
"dotenv-safe": "^4.0.4",
|
||||||
"dugite": "^1.45.0",
|
"dugite": "^1.45.0",
|
||||||
"eslint": "^5.13.0",
|
"eslint": "^7.4.0",
|
||||||
"eslint-config-standard": "^12.0.0",
|
"eslint-config-standard": "^12.0.0",
|
||||||
"eslint-plugin-import": "^2.17.2",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"eslint-plugin-mocha": "^5.2.0",
|
"eslint-plugin-mocha": "^7.0.1",
|
||||||
"eslint-plugin-node": "^8.0.1",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-standard": "^4.0.0",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"eslint-plugin-typescript": "^0.14.0",
|
"eslint-plugin-typescript": "^0.14.0",
|
||||||
"express": "^4.16.4",
|
"express": "^4.16.4",
|
||||||
"folder-hash": "^2.1.1",
|
"folder-hash": "^2.1.1",
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
"husky": "^2.2.0",
|
"husky": "^2.2.0",
|
||||||
"klaw": "^3.0.0",
|
"klaw": "^3.0.0",
|
||||||
"lint": "^1.1.2",
|
"lint": "^1.1.2",
|
||||||
"lint-staged": "^8.1.0",
|
"lint-staged": "^10.2.11",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
"nugget": "^2.0.1",
|
"nugget": "^2.0.1",
|
||||||
"null-loader": "^4.0.0",
|
"null-loader": "^4.0.0",
|
||||||
|
@ -105,28 +105,23 @@
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,ts}": [
|
"*.{js,ts}": [
|
||||||
"node script/lint.js --js --fix --only --",
|
"node script/lint.js --js --fix --only --"
|
||||||
"git add"
|
|
||||||
],
|
],
|
||||||
"*.{js,ts,d.ts}": [
|
"*.{js,ts,d.ts}": [
|
||||||
"node script/gen-filenames.js",
|
"node script/gen-filenames.js"
|
||||||
"git add"
|
|
||||||
],
|
],
|
||||||
"*.{cc,mm,c,h}": [
|
"*.{cc,mm,c,h}": [
|
||||||
"python script/run-clang-format.py -r -c --fix",
|
"python script/run-clang-format.py -r -c --fix"
|
||||||
"git add"
|
|
||||||
],
|
],
|
||||||
"*.md": [
|
"*.md": [
|
||||||
"npm run lint:docs"
|
"npm run lint:docs"
|
||||||
],
|
],
|
||||||
"*.{gn,gni}": [
|
"*.{gn,gni}": [
|
||||||
"npm run gn-check",
|
"npm run gn-check",
|
||||||
"python script/run-gn-format.py",
|
"python script/run-gn-format.py"
|
||||||
"git add"
|
|
||||||
],
|
],
|
||||||
"*.py": [
|
"*.py": [
|
||||||
"node script/lint.js --py --fix --only --",
|
"node script/lint.js --py --fix --only --"
|
||||||
"git add"
|
|
||||||
],
|
],
|
||||||
"docs/api/**/*.md": [
|
"docs/api/**/*.md": [
|
||||||
"node script/gen-filenames.js",
|
"node script/gen-filenames.js",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { BrowserWindow } = require('electron');
|
const { BrowserWindow } = require('electron');
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
set bar (value) {
|
set bar (value) { // eslint-disable-line accessor-pairs
|
||||||
if (!(value instanceof BrowserWindow)) {
|
if (!(value instanceof BrowserWindow)) {
|
||||||
throw new Error('setting error');
|
throw new Error('setting error');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue