浏览代码

Updates dependencies

Fixes lint issues
main
Eric Amodio 4 年前
父节点
当前提交
ffa59f8e93
共有 6 个文件被更改,包括 65 次插入62 次删除
  1. +3
    -3
      package.json
  2. +4
    -10
      src/system/decorators/timeout.ts
  3. +2
    -1
      src/vsls/protocol.ts
  4. +2
    -1
      src/webviews/apps/shared/events.ts
  5. +2
    -0
      src/webviews/protocol.ts
  6. +52
    -47
      yarn.lock

+ 3
- 3
package.json 查看文件

@ -6204,8 +6204,8 @@
"@types/node": "12.12.51",
"@types/sortablejs": "1.10.5",
"@types/vscode": "1.47.0",
"@typescript-eslint/eslint-plugin": "3.7.0",
"@typescript-eslint/parser": "3.7.0",
"@typescript-eslint/eslint-plugin": "4.0.0-alpha.1",
"@typescript-eslint/parser": "4.0.0-alpha.1",
"circular-dependency-plugin": "5.2.0",
"clean-webpack-plugin": "3.0.0",
"csp-html-webpack-plugin": "4.0.0",
@ -6223,7 +6223,7 @@
"node-sass": "4.14.1",
"prettier": "2.0.5",
"sass-loader": "9.0.2",
"terser-webpack-plugin": "3.0.7",
"terser-webpack-plugin": "3.0.8",
"ts-loader": "8.0.1",
"typescript": "3.9.7",
"vsce": "1.77.0",

+ 4
- 10
src/system/decorators/timeout.ts 查看文件

@ -1,15 +1,9 @@
'use strict';
import { Promises } from '../promise';
// import { Logger } from '../../logger';
// import { Strings } from '../string';
// import { GlyphChars } from '../../constants';
export function timeout<T extends (...arg: any) => any>(timeout: number): any;
export function timeout<T extends (...arg: any) => any>(timeoutFromLastArg: true, defaultTimeout?: number): any;
export function timeout<T extends (...arg: any) => any>(
timeoutOrTimeoutFromLastArg: number | boolean,
defaultTimeout?: number,
): any {
export function timeout(timeout: number): any;
export function timeout(timeoutFromLastArg: true, defaultTimeout?: number): any;
export function timeout(timeoutOrTimeoutFromLastArg: number | boolean, defaultTimeout?: number): any {
let timeout: number | undefined;
let timeoutFromLastArg = false;
if (typeof timeoutOrTimeoutFromLastArg === 'boolean') {
@ -52,7 +46,7 @@ export function timeout any>(
// );
// return r;
// }),
new Promise((resolve, reject) => {
new Promise((_, reject) => {
const id = setTimeout(() => {
clearTimeout(id);
reject(new Promises.CancellationError(result, `Timed out after ${timeout} ms`));

+ 2
- 1
src/vsls/protocol.ts 查看文件

@ -1,7 +1,8 @@
'use strict';
import { GitCommandOptions } from '../git/git';
export class RequestType<TRequest, TResponse> {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export class RequestType<Request, Response> {
constructor(public readonly name: string) {}
}

+ 2
- 1
src/webviews/apps/shared/events.ts 查看文件

@ -8,6 +8,7 @@ export interface Disposable {
}
export interface Event<T> {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
(listener: (e: T) => any, thisArgs?: any, disposables?: Disposable[]): Disposable;
}
@ -22,7 +23,7 @@ export interface EmitterOptions {
}
export class Emitter<T> {
// eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-empty-function
private static readonly _noop = function () {};
private readonly _options?: EmitterOptions;

+ 2
- 0
src/webviews/protocol.ts 查看文件

@ -8,11 +8,13 @@ export interface IpcMessage {
}
export type IpcNotificationParamsOf<NT> = NT extends IpcNotificationType<infer P> ? P : never;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export class IpcNotificationType<P = any> {
constructor(public readonly method: string) {}
}
export type IpcCommandParamsOf<CT> = CT extends IpcCommandType<infer P> ? P : never;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export class IpcCommandType<P = any> {
constructor(public readonly method: string) {}
}

+ 52
- 47
yarn.lock 查看文件

@ -122,11 +122,6 @@
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
"@types/eslint-visitor-keys@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==
"@types/glob@^7.1.1":
version "7.1.3"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183"
@ -283,52 +278,61 @@
"@types/webpack-sources" "*"
source-map "^0.6.0"
"@typescript-eslint/eslint-plugin@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.0.tgz#0f91aa3c83d019591719e597fbdb73a59595a263"
integrity sha512-4OEcPON3QIx0ntsuiuFP/TkldmBGXf0uKxPQlGtS/W2F3ndYm8Vgdpj/woPJkzUc65gd3iR+qi3K8SDQP/obFg==
"@typescript-eslint/eslint-plugin@4.0.0-alpha.1":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.0.0-alpha.1.tgz#7b8861c64c1cc47e821766a04e7c2a0c414488e4"
integrity sha512-AIhYZPAgCogvEoYJVG5ySIAVda16eZyJWsJKhbSV3gd3CcVnHfCLhaEgw/Sc7aMwEb6Z9LzURF6+eu43up0d3A==
dependencies:
"@typescript-eslint/experimental-utils" "3.7.0"
"@typescript-eslint/experimental-utils" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/scope-manager" "4.0.0-alpha.1+abb0617e"
debug "^4.1.1"
functional-red-black-tree "^1.0.1"
regexpp "^3.0.0"
semver "^7.3.2"
tsutils "^3.17.1"
"@typescript-eslint/experimental-utils@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.0.tgz#0ee21f6c48b2b30c63211da23827725078d5169a"
integrity sha512-xpfXXAfZqhhqs5RPQBfAFrWDHoNxD5+sVB5A46TF58Bq1hRfVROrWHcQHHUM9aCBdy9+cwATcvCbRg8aIRbaHQ==
"@typescript-eslint/experimental-utils@4.0.0-alpha.1+abb0617e":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.0.0-alpha.1.tgz#a463cb2c749e91c6aa2ef5ca26ca571018927ea4"
integrity sha512-qHgb+EjYbL2zXC8h23sf9tbS6wfg9FlvWAER99I5fLmeF0t85fOkHOKYUQUaB1YI+4oTRgSSeYO1I7dgLC9TTQ==
dependencies:
"@types/json-schema" "^7.0.3"
"@typescript-eslint/types" "3.7.0"
"@typescript-eslint/typescript-estree" "3.7.0"
"@typescript-eslint/scope-manager" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/types" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/typescript-estree" "4.0.0-alpha.1+abb0617e"
eslint-scope "^5.0.0"
eslint-utils "^2.0.0"
"@typescript-eslint/parser@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.0.tgz#3e9cd9df9ea644536feb6e5acdb8279ecff96ce9"
integrity sha512-2LZauVUt7jAWkcIW7djUc3kyW+fSarNEuM3RF2JdLHR9BfX/nDEnyA4/uWz0wseoWVZbDXDF7iF9Jc342flNqQ==
"@typescript-eslint/parser@4.0.0-alpha.1":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.0.0-alpha.1.tgz#5ba44145e91d258a72c7e9da9804e6a7e1202a57"
integrity sha512-VY+VZ9mi9E2+HWWyOWJ1fn2Rad5eMvyPZ9wHoEyweiTcMTOgh+djs0Urv8mAtExRPHft6Yp8CYrP9XINzbDRlQ==
dependencies:
"@types/eslint-visitor-keys" "^1.0.0"
"@typescript-eslint/experimental-utils" "3.7.0"
"@typescript-eslint/types" "3.7.0"
"@typescript-eslint/typescript-estree" "3.7.0"
eslint-visitor-keys "^1.1.0"
"@typescript-eslint/scope-manager" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/types" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/typescript-estree" "4.0.0-alpha.1+abb0617e"
debug "^4.1.1"
"@typescript-eslint/types@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.0.tgz#09897fab0cb95479c01166b10b2c03c224821077"
integrity sha512-reCaK+hyKkKF+itoylAnLzFeNYAEktB0XVfSQvf0gcVgpz1l49Lt6Vo9x4MVCCxiDydA0iLAjTF/ODH0pbfnpg==
"@typescript-eslint/scope-manager@4.0.0-alpha.1+abb0617e":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.0.0-alpha.1.tgz#cafef39f7ff840205c5f7229a2ac9dcef4c38ef3"
integrity sha512-eUtDTEkicYdv4rDeh9FSL6+xALaKW29fvFwRPVmvWveVUlTvu1Ppx7s2lFePSsLf2tlMoC4rBnvW53LvpcdPrA==
dependencies:
"@typescript-eslint/types" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/visitor-keys" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/typescript-estree@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.0.tgz#66872e6da120caa4b64e6b4ca5c8702afc74738d"
integrity sha512-xr5oobkYRebejlACGr1TJ0Z/r0a2/HUf0SXqPvlgUMwiMqOCu/J+/Dr9U3T0IxpE5oLFSkqMx1FE/dKaZ8KsOQ==
"@typescript-eslint/types@4.0.0-alpha.1+abb0617e":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.0.0-alpha.1.tgz#994b8bd02f6cddc9a2740c36cf6d4e1b878a1fad"
integrity sha512-/4lCdgi9L0D6RqVPqOLGo9n/Eq1F2kibIBRSypztqaMOYhBUxinNeeXPNVnhZCqkA8oIrh6BqtCMgnqOUmjCHg==
"@typescript-eslint/typescript-estree@4.0.0-alpha.1+abb0617e":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.0.0-alpha.1.tgz#fe40b3ab6a92a3f32aab769c59257738ad652011"
integrity sha512-fqdfS2yaFI0XqEib1T167PAnT5IKm42eDDJCM7lTL4o6VLpfpi37hWRqVh7LkapeiBzwnBcBRxONsBRZjqUeLw==
dependencies:
"@typescript-eslint/types" "3.7.0"
"@typescript-eslint/visitor-keys" "3.7.0"
"@typescript-eslint/types" "4.0.0-alpha.1+abb0617e"
"@typescript-eslint/visitor-keys" "4.0.0-alpha.1+abb0617e"
debug "^4.1.1"
glob "^7.1.6"
is-glob "^4.0.1"
@ -336,12 +340,13 @@
semver "^7.3.2"
tsutils "^3.17.1"
"@typescript-eslint/visitor-keys@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.0.tgz#ac0417d382a136e4571a0b0dcfe52088cb628177"
integrity sha512-k5PiZdB4vklUpUX4NBncn5RBKty8G3ihTY+hqJsCdMuD0v4jofI5xuqwnVcWxfv6iTm2P/dfEa2wMUnsUY8ODw==
"@typescript-eslint/visitor-keys@4.0.0-alpha.1+abb0617e":
version "4.0.0-alpha.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.0.0-alpha.1.tgz#b50235981901023491faa4eb9c622d5c56f53ee8"
integrity sha512-XWHCO6NP0DkQft110plumAU1UBi6XG4Q3cI97opmtYtV7aQ3H/2HnPT/Xq1DT4JjHOWJDZl50DtjSoCD4kjz+g==
dependencies:
eslint-visitor-keys "^1.1.0"
"@typescript-eslint/types" "4.0.0-alpha.1+abb0617e"
eslint-visitor-keys "^1.3.0"
"@webassemblyjs/ast@1.9.0":
version "1.9.0"
@ -545,9 +550,9 @@ ajv-errors@^1.0.0:
integrity sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==
ajv-keywords@^3.1.0, ajv-keywords@^3.4.1:
version "3.5.1"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.1.tgz#b83ca89c5d42d69031f424cad49aada0236c6957"
integrity sha512-KWcq3xN8fDjSB+IMoh2VaXVhRI0BBGxoYp3rx7Pkb6z0cFjYR9Q9l4yZqqals0/zsioCmocC5H6UvsGD4MoIBA==
version "3.5.2"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d"
integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.5.5:
version "6.12.3"
@ -6881,10 +6886,10 @@ tempfile@^2.0.0:
temp-dir "^1.0.0"
uuid "^3.0.1"
terser-webpack-plugin@3.0.7:
version "3.0.7"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-3.0.7.tgz#db23b946dcca8954da3ebda3675360bceebdc78e"
integrity sha512-5JqibUOctE6Ou4T00IVGYTQJBOhu24jz0PpqYeitQJJ3hlZY2ZKSwzzuqjmBH8MzbdWMgIefpmHwTkvwm6Q4CQ==
terser-webpack-plugin@3.0.8:
version "3.0.8"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-3.0.8.tgz#d1a53442a143e09e00c880e8d77c1e79cb05318b"
integrity sha512-ygwK8TYMRTYtSyLB2Mhnt90guQh989CIq/mL/2apwi6rA15Xys4ydNUiH4ah6EZCfQxSk26ZFQilZ4IQ6IZw6A==
dependencies:
cacache "^15.0.5"
find-cache-dir "^3.3.1"

正在加载...
取消
保存