From 0336c798c9502fc250d2eaa045661950da55e52f Mon Sep 17 00:00:00 2001 From: Armano Date: Mon, 1 Mar 2021 01:29:00 +0100 Subject: [PATCH] fix(scope-manager): update libs for typescript 4.2 (#3118) --- packages/scope-manager/src/lib/dom.ts | 186 ++++++++++++++------ packages/scope-manager/src/lib/webworker.ts | 134 +++++++------- 2 files changed, 202 insertions(+), 118 deletions(-) diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index e736f675fd4..9fc4c510684 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -629,6 +629,12 @@ export const dom = { isValueVariable: false, name: 'ImageEncodeOptions', }, + ImportMeta: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ImportMeta', + }, InputEventInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -959,12 +965,6 @@ export const dom = { isValueVariable: false, name: 'PermissionDescriptor', }, - PipeOptions: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'PipeOptions', - }, PointerEventInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1073,6 +1073,12 @@ export const dom = { isValueVariable: false, name: 'QueuingStrategy', }, + QueuingStrategyInit: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'QueuingStrategyInit', + }, RTCAnswerOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1421,17 +1427,23 @@ export const dom = { isValueVariable: false, name: 'RTCTransportStats', }, - ReadableStreamReadDoneResult: { + ReadableStreamDefaultReadDoneResult: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadDoneResult', + name: 'ReadableStreamDefaultReadDoneResult', }, - ReadableStreamReadValueResult: { + ReadableStreamDefaultReadValueResult: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadValueResult', + name: 'ReadableStreamDefaultReadValueResult', + }, + ReadableWritablePair: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableWritablePair', }, RegistrationOptions: { eslintImplicitGlobalSetting: 'readonly', @@ -1445,6 +1457,12 @@ export const dom = { isValueVariable: false, name: 'RequestInit', }, + ResizeObserverOptions: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ResizeObserverOptions', + }, ResponseInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1565,6 +1583,18 @@ export const dom = { isValueVariable: false, name: 'ShareData', }, + SpeechRecognitionErrorEventInit: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'SpeechRecognitionErrorEventInit', + }, + SpeechRecognitionEventInit: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'SpeechRecognitionEventInit', + }, SpeechSynthesisErrorEventInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1613,6 +1643,12 @@ export const dom = { isValueVariable: false, name: 'StoreSiteSpecificExceptionsInformation', }, + StreamPipeOptions: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'StreamPipeOptions', + }, TextDecodeOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1673,12 +1709,6 @@ export const dom = { isValueVariable: false, name: 'ULongRange', }, - UnderlyingByteSource: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'UnderlyingByteSource', - }, UnderlyingSink: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -4715,53 +4745,53 @@ export const dom = { isValueVariable: true, name: 'Range', }, - ReadableByteStreamController: { + ReadableStream: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableByteStreamController', + name: 'ReadableStream', }, - ReadableStream: { + ReadableStreamDefaultController: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableStream', + name: 'ReadableStreamDefaultController', }, - ReadableStreamBYOBReader: { + ReadableStreamDefaultReader: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableStreamBYOBReader', + name: 'ReadableStreamDefaultReader', }, - ReadableStreamBYOBRequest: { + ReadableStreamGenericReader: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, - isValueVariable: true, - name: 'ReadableStreamBYOBRequest', + isValueVariable: false, + name: 'ReadableStreamGenericReader', }, - ReadableStreamDefaultController: { + Request: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableStreamDefaultController', + name: 'Request', }, - ReadableStreamDefaultReader: { + ResizeObserver: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableStreamDefaultReader', + name: 'ResizeObserver', }, - ReadableStreamReader: { + ResizeObserverEntry: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'ReadableStreamReader', + name: 'ResizeObserverEntry', }, - Request: { + ResizeObserverSize: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, - name: 'Request', + name: 'ResizeObserverSize', }, Response: { eslintImplicitGlobalSetting: 'readonly', @@ -5693,6 +5723,12 @@ export const dom = { isValueVariable: true, name: 'SpeechRecognitionAlternative', }, + SpeechRecognitionErrorEvent: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, + name: 'SpeechRecognitionErrorEvent', + }, SpeechRecognitionEvent: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -6593,11 +6629,11 @@ export const dom = { isValueVariable: false, name: 'PositionErrorCallback', }, - QueuingStrategySizeCallback: { + QueuingStrategySize: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'QueuingStrategySizeCallback', + name: 'QueuingStrategySize', }, RTCPeerConnectionErrorCallback: { eslintImplicitGlobalSetting: 'readonly', @@ -6617,65 +6653,77 @@ export const dom = { isValueVariable: false, name: 'RTCStatsCallback', }, - ReadableByteStreamControllerCallback: { + ResizeObserverCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableByteStreamControllerCallback', + name: 'ResizeObserverCallback', }, - ReadableStreamDefaultControllerCallback: { + TransformerFlushCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamDefaultControllerCallback', + name: 'TransformerFlushCallback', }, - ReadableStreamErrorCallback: { + TransformerStartCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamErrorCallback', + name: 'TransformerStartCallback', }, - TransformStreamDefaultControllerCallback: { + TransformerTransformCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'TransformStreamDefaultControllerCallback', + name: 'TransformerTransformCallback', }, - TransformStreamDefaultControllerTransformCallback: { + UnderlyingSinkAbortCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'TransformStreamDefaultControllerTransformCallback', + name: 'UnderlyingSinkAbortCallback', }, - VoidFunction: { + UnderlyingSinkCloseCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'VoidFunction', + name: 'UnderlyingSinkCloseCallback', }, - WritableStreamDefaultControllerCloseCallback: { + UnderlyingSinkStartCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerCloseCallback', + name: 'UnderlyingSinkStartCallback', }, - WritableStreamDefaultControllerStartCallback: { + UnderlyingSinkWriteCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerStartCallback', + name: 'UnderlyingSinkWriteCallback', }, - WritableStreamDefaultControllerWriteCallback: { + UnderlyingSourceCancelCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerWriteCallback', + name: 'UnderlyingSourceCancelCallback', }, - WritableStreamErrorCallback: { + UnderlyingSourcePullCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamErrorCallback', + name: 'UnderlyingSourcePullCallback', + }, + UnderlyingSourceStartCallback: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'UnderlyingSourceStartCallback', + }, + VoidFunction: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'VoidFunction', }, HTMLElementTagNameMap: { eslintImplicitGlobalSetting: 'readonly', @@ -6827,11 +6875,17 @@ export const dom = { isValueVariable: false, name: 'PerformanceEntryList', }, - ReadableStreamReadResult: { + ReadableStreamReader: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadResult', + name: 'ReadableStreamReader', + }, + ReadableStreamController: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableStreamController', }, VibratePattern: { eslintImplicitGlobalSetting: 'readonly', @@ -7055,6 +7109,12 @@ export const dom = { isValueVariable: false, name: 'WindowProxy', }, + ReadableStreamDefaultReadResult: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableStreamDefaultReadResult', + }, AlignSetting: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7751,6 +7811,12 @@ export const dom = { isValueVariable: false, name: 'ResidentKeyRequirement', }, + ResizeObserverBoxOptions: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ResizeObserverBoxOptions', + }, ResizeQuality: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7817,6 +7883,12 @@ export const dom = { isValueVariable: false, name: 'ShadowRootMode', }, + SpeechRecognitionErrorCode: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'SpeechRecognitionErrorCode', + }, SpeechSynthesisErrorCode: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index c56ee988524..3f76351c98f 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -263,6 +263,12 @@ export const webworker = { isValueVariable: false, name: 'ImageEncodeOptions', }, + ImportMeta: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ImportMeta', + }, JsonWebKey: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -335,12 +341,6 @@ export const webworker = { isValueVariable: false, name: 'PermissionDescriptor', }, - PipeOptions: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'PipeOptions', - }, PostMessageOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -395,17 +395,29 @@ export const webworker = { isValueVariable: false, name: 'QueuingStrategy', }, - ReadableStreamReadDoneResult: { + QueuingStrategyInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadDoneResult', + name: 'QueuingStrategyInit', }, - ReadableStreamReadValueResult: { + ReadableStreamDefaultReadDoneResult: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadValueResult', + name: 'ReadableStreamDefaultReadDoneResult', + }, + ReadableStreamDefaultReadValueResult: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableStreamDefaultReadValueResult', + }, + ReadableWritablePair: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableWritablePair', }, RegistrationOptions: { eslintImplicitGlobalSetting: 'readonly', @@ -467,6 +479,12 @@ export const webworker = { isValueVariable: false, name: 'StorageEstimate', }, + StreamPipeOptions: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'StreamPipeOptions', + }, SyncEventInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -497,12 +515,6 @@ export const webworker = { isValueVariable: false, name: 'Transformer', }, - UnderlyingByteSource: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'UnderlyingByteSource', - }, UnderlyingSink: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1373,30 +1385,12 @@ export const webworker = { isValueVariable: true, name: 'PushSubscriptionOptions', }, - ReadableByteStreamController: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ReadableByteStreamController', - }, ReadableStream: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: true, name: 'ReadableStream', }, - ReadableStreamBYOBReader: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ReadableStreamBYOBReader', - }, - ReadableStreamBYOBRequest: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ReadableStreamBYOBRequest', - }, ReadableStreamDefaultController: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1409,11 +1403,11 @@ export const webworker = { isValueVariable: true, name: 'ReadableStreamDefaultReader', }, - ReadableStreamReader: { + ReadableStreamGenericReader: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, - isValueVariable: true, - name: 'ReadableStreamReader', + isValueVariable: false, + name: 'ReadableStreamGenericReader', }, Request: { eslintImplicitGlobalSetting: 'readonly', @@ -1919,71 +1913,77 @@ export const webworker = { isValueVariable: false, name: 'PerformanceObserverCallback', }, - QueuingStrategySizeCallback: { + QueuingStrategySize: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'QueuingStrategySizeCallback', + name: 'QueuingStrategySize', }, - ReadableByteStreamControllerCallback: { + TransformerFlushCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableByteStreamControllerCallback', + name: 'TransformerFlushCallback', }, - ReadableStreamDefaultControllerCallback: { + TransformerStartCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamDefaultControllerCallback', + name: 'TransformerStartCallback', }, - ReadableStreamErrorCallback: { + TransformerTransformCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamErrorCallback', + name: 'TransformerTransformCallback', }, - TransformStreamDefaultControllerCallback: { + UnderlyingSinkAbortCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'TransformStreamDefaultControllerCallback', + name: 'UnderlyingSinkAbortCallback', }, - TransformStreamDefaultControllerTransformCallback: { + UnderlyingSinkCloseCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'TransformStreamDefaultControllerTransformCallback', + name: 'UnderlyingSinkCloseCallback', }, - VoidFunction: { + UnderlyingSinkStartCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'VoidFunction', + name: 'UnderlyingSinkStartCallback', }, - WritableStreamDefaultControllerCloseCallback: { + UnderlyingSinkWriteCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerCloseCallback', + name: 'UnderlyingSinkWriteCallback', }, - WritableStreamDefaultControllerStartCallback: { + UnderlyingSourceCancelCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerStartCallback', + name: 'UnderlyingSourceCancelCallback', }, - WritableStreamDefaultControllerWriteCallback: { + UnderlyingSourcePullCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamDefaultControllerWriteCallback', + name: 'UnderlyingSourcePullCallback', }, - WritableStreamErrorCallback: { + UnderlyingSourceStartCallback: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'WritableStreamErrorCallback', + name: 'UnderlyingSourceStartCallback', + }, + VoidFunction: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'VoidFunction', }, HeadersInit: { eslintImplicitGlobalSetting: 'readonly', @@ -2063,11 +2063,17 @@ export const webworker = { isValueVariable: false, name: 'PushMessageDataInit', }, - ReadableStreamReadResult: { + ReadableStreamReader: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableStreamReader', + }, + ReadableStreamController: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'ReadableStreamReadResult', + name: 'ReadableStreamController', }, VibratePattern: { eslintImplicitGlobalSetting: 'readonly', @@ -2225,6 +2231,12 @@ export const webworker = { isValueVariable: false, name: 'Transferable', }, + ReadableStreamDefaultReadResult: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'ReadableStreamDefaultReadResult', + }, BinaryType: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true,