From ed4776afa1374279027b9b7d82aa4b453b334998 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Fri, 28 May 2021 16:20:35 -0700 Subject: [PATCH] fix: generate library types for TypeScript v4.3 (#3460) Fixes #3449 --- .../scope-manager/src/lib/dom.iterable.ts | 6 - packages/scope-manager/src/lib/dom.ts | 222 +++--------------- packages/scope-manager/src/lib/es2021.full.ts | 18 ++ .../scope-manager/src/lib/es2021.promise.ts | 26 ++ .../scope-manager/src/lib/es2021.string.ts | 14 ++ packages/scope-manager/src/lib/es2021.ts | 16 ++ .../scope-manager/src/lib/es2021.weakref.ts | 32 +++ packages/scope-manager/src/lib/esnext.ts | 10 +- packages/scope-manager/src/lib/index.ts | 10 + packages/scope-manager/src/lib/webworker.ts | 18 -- packages/types/src/lib.ts | 5 + packages/typescript-estree/src/node-utils.ts | 2 +- 12 files changed, 163 insertions(+), 216 deletions(-) create mode 100644 packages/scope-manager/src/lib/es2021.full.ts create mode 100644 packages/scope-manager/src/lib/es2021.promise.ts create mode 100644 packages/scope-manager/src/lib/es2021.string.ts create mode 100644 packages/scope-manager/src/lib/es2021.ts create mode 100644 packages/scope-manager/src/lib/es2021.weakref.ts diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index 582f11704e2..ada65433625 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -293,12 +293,6 @@ export const dom_iterable = { isValueVariable: false, name: 'WEBGL_draw_buffers', }, - WebAuthentication: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'WebAuthentication', - }, WebGL2RenderingContextBase: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 9fc4c510684..fb6977b7117 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -5,17 +5,17 @@ import { ImplicitLibVariableOptions } from '../variable'; export const dom = { - Account: { + AddEventListenerOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'Account', + name: 'AddEventListenerOptions', }, - AddEventListenerOptions: { + AddressErrors: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'AddEventListenerOptions', + name: 'AddressErrors', }, AesCbcParams: { eslintImplicitGlobalSetting: 'readonly', @@ -77,12 +77,6 @@ export const dom = { isValueVariable: false, name: 'AnimationPlaybackEventInit', }, - AssertionOptions: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'AssertionOptions', - }, AssignedNodesOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -203,12 +197,6 @@ export const dom = { isValueVariable: false, name: 'ChannelSplitterOptions', }, - ClientData: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ClientData', - }, ClientQueryOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -353,12 +341,6 @@ export const dom = { isValueVariable: false, name: 'DelayOptions', }, - DeviceLightEventInit: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'DeviceLightEventInit', - }, DeviceMotionEventAccelerationInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -875,6 +857,12 @@ export const dom = { isValueVariable: false, name: 'PannerOptions', }, + PayerErrors: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'PayerErrors', + }, PaymentCurrencyAmount: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -911,6 +899,12 @@ export const dom = { isValueVariable: false, name: 'PaymentItem', }, + PaymentMethodChangeEventInit: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'PaymentMethodChangeEventInit', + }, PaymentMethodData: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -935,6 +929,12 @@ export const dom = { isValueVariable: false, name: 'PaymentShippingOption', }, + PaymentValidationErrors: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'PaymentValidationErrors', + }, Pbkdf2Params: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1205,17 +1205,17 @@ export const dom = { isValueVariable: false, name: 'RTCInboundRTPStreamStats', }, - RTCMediaStreamTrackStats: { + RTCLocalSessionDescriptionInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'RTCMediaStreamTrackStats', + name: 'RTCLocalSessionDescriptionInit', }, - RTCOAuthCredential: { + RTCMediaStreamTrackStats: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, isValueVariable: false, - name: 'RTCOAuthCredential', + name: 'RTCMediaStreamTrackStats', }, RTCOfferAnswerOptions: { eslintImplicitGlobalSetting: 'readonly', @@ -1295,12 +1295,6 @@ export const dom = { isValueVariable: false, name: 'RTCRtpContributingSource', }, - RTCRtpDecodingParameters: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'RTCRtpDecodingParameters', - }, RTCRtpEncodingParameters: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1403,12 +1397,6 @@ export const dom = { isValueVariable: false, name: 'RTCStats', }, - RTCStatsEventInit: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'RTCStatsEventInit', - }, RTCStatsReport: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1523,24 +1511,6 @@ export const dom = { isValueVariable: false, name: 'SVGBoundingBoxOptions', }, - ScopedCredentialDescriptor: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ScopedCredentialDescriptor', - }, - ScopedCredentialOptions: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ScopedCredentialOptions', - }, - ScopedCredentialParameters: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ScopedCredentialParameters', - }, ScrollIntoViewOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1565,12 +1535,6 @@ export const dom = { isValueVariable: false, name: 'SecurityPolicyViolationEventInit', }, - ServiceWorkerMessageEventInit: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ServiceWorkerMessageEventInit', - }, ShadowRootInit: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1745,12 +1709,6 @@ export const dom = { isValueVariable: false, name: 'WaveShaperOptions', }, - WebAuthnExtensions: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'WebAuthnExtensions', - }, WebGLContextAttributes: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -2465,12 +2423,6 @@ export const dom = { isValueVariable: true, name: 'DOMImplementation', }, - DOML2DeprecatedColorProperty: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'DOML2DeprecatedColorProperty', - }, DOMMatrix: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -2615,12 +2567,6 @@ export const dom = { isValueVariable: true, name: 'DeviceAcceleration', }, - DeviceLightEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'DeviceLightEvent', - }, DeviceMotionEvent: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -3005,12 +2951,6 @@ export const dom = { isValueVariable: true, name: 'HTMLBaseElement', }, - HTMLBaseFontElement: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'HTMLBaseFontElement', - }, HTMLBodyElementEventMap: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -3737,12 +3677,6 @@ export const dom = { isValueVariable: true, name: 'MSGesture', }, - MSGestureEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'MSGestureEvent', - }, MSGraphicsTrust: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -3767,18 +3701,6 @@ export const dom = { isValueVariable: true, name: 'MSMediaKeyError', }, - MSMediaKeyMessageEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'MSMediaKeyMessageEvent', - }, - MSMediaKeyNeededEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'MSMediaKeyNeededEvent', - }, MSMediaKeySession: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -3797,12 +3719,6 @@ export const dom = { isValueVariable: false, name: 'MSNavigatorDoNotTrack', }, - MSPointerEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'MSPointerEvent', - }, MSStream: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -4295,6 +4211,12 @@ export const dom = { isValueVariable: true, name: 'PaymentAddress', }, + PaymentMethodChangeEvent: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, + name: 'PaymentMethodChangeEvent', + }, PaymentRequestEventMap: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -4313,6 +4235,12 @@ export const dom = { isValueVariable: true, name: 'PaymentRequestUpdateEvent', }, + PaymentResponseEventMap: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'PaymentResponseEventMap', + }, PaymentResponse: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -4709,12 +4637,6 @@ export const dom = { isValueVariable: true, name: 'RTCSsrcConflictEvent', }, - RTCStatsEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'RTCStatsEvent', - }, RTCStatsProvider: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -5540,7 +5462,7 @@ export const dom = { SVGZoomAndPan: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, - isValueVariable: true, + isValueVariable: false, name: 'SVGZoomAndPan', }, SVGZoomEvent: { @@ -5549,18 +5471,6 @@ export const dom = { isValueVariable: true, name: 'SVGZoomEvent', }, - ScopedCredential: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ScopedCredential', - }, - ScopedCredentialInfo: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ScopedCredentialInfo', - }, Screen: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -5633,12 +5543,6 @@ export const dom = { isValueVariable: true, name: 'ServiceWorkerContainer', }, - ServiceWorkerMessageEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'ServiceWorkerMessageEvent', - }, ServiceWorkerRegistrationEventMap: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -6161,18 +6065,6 @@ export const dom = { isValueVariable: true, name: 'WaveShaperNode', }, - WebAuthentication: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'WebAuthentication', - }, - WebAuthnAssertion: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'WebAuthnAssertion', - }, WebGL2RenderingContext: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -6215,12 +6107,6 @@ export const dom = { isValueVariable: true, name: 'WebGLFramebuffer', }, - WebGLObject: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'WebGLObject', - }, WebGLProgram: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7601,12 +7487,6 @@ export const dom = { isValueVariable: false, name: 'RTCDataChannelState', }, - RTCDegradationPreference: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'RTCDegradationPreference', - }, RTCDtlsRole: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7619,12 +7499,6 @@ export const dom = { isValueVariable: false, name: 'RTCDtlsTransportState', }, - RTCDtxStatus: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'RTCDtxStatus', - }, RTCErrorDetailType: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7709,12 +7583,6 @@ export const dom = { isValueVariable: false, name: 'RTCPeerConnectionState', }, - RTCPriorityType: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'RTCPriorityType', - }, RTCRtcpMuxPolicy: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7829,12 +7697,6 @@ export const dom = { isValueVariable: false, name: 'ResponseType', }, - ScopedCredentialType: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'ScopedCredentialType', - }, ScrollBehavior: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -7913,12 +7775,6 @@ export const dom = { isValueVariable: false, name: 'TouchType', }, - Transport: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'Transport', - }, UserVerificationRequirement: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, diff --git a/packages/scope-manager/src/lib/es2021.full.ts b/packages/scope-manager/src/lib/es2021.full.ts new file mode 100644 index 00000000000..f2f88f226be --- /dev/null +++ b/packages/scope-manager/src/lib/es2021.full.ts @@ -0,0 +1,18 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// YOU CAN REGENERATE IT USING yarn generate:lib + +import { ImplicitLibVariableOptions } from '../variable'; +import { es2021 } from './es2021'; +import { dom } from './dom'; +import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; + +export const es2021_full = { + ...es2021, + ...dom, + ...webworker_importscripts, + ...scripthost, + ...dom_iterable, +} as Record; diff --git a/packages/scope-manager/src/lib/es2021.promise.ts b/packages/scope-manager/src/lib/es2021.promise.ts new file mode 100644 index 00000000000..76c197a1dc1 --- /dev/null +++ b/packages/scope-manager/src/lib/es2021.promise.ts @@ -0,0 +1,26 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// YOU CAN REGENERATE IT USING yarn generate:lib + +import { ImplicitLibVariableOptions } from '../variable'; + +export const es2021_promise = { + AggregateError: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, + name: 'AggregateError', + }, + AggregateErrorConstructor: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'AggregateErrorConstructor', + }, + PromiseConstructor: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'PromiseConstructor', + }, +} as Record; diff --git a/packages/scope-manager/src/lib/es2021.string.ts b/packages/scope-manager/src/lib/es2021.string.ts new file mode 100644 index 00000000000..16d42e4428e --- /dev/null +++ b/packages/scope-manager/src/lib/es2021.string.ts @@ -0,0 +1,14 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// YOU CAN REGENERATE IT USING yarn generate:lib + +import { ImplicitLibVariableOptions } from '../variable'; + +export const es2021_string = { + String: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'String', + }, +} as Record; diff --git a/packages/scope-manager/src/lib/es2021.ts b/packages/scope-manager/src/lib/es2021.ts new file mode 100644 index 00000000000..027a2d6142d --- /dev/null +++ b/packages/scope-manager/src/lib/es2021.ts @@ -0,0 +1,16 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// YOU CAN REGENERATE IT USING yarn generate:lib + +import { ImplicitLibVariableOptions } from '../variable'; +import { es2020 } from './es2020'; +import { es2021_promise } from './es2021.promise'; +import { es2021_string } from './es2021.string'; +import { es2021_weakref } from './es2021.weakref'; + +export const es2021 = { + ...es2020, + ...es2021_promise, + ...es2021_string, + ...es2021_weakref, +} as Record; diff --git a/packages/scope-manager/src/lib/es2021.weakref.ts b/packages/scope-manager/src/lib/es2021.weakref.ts new file mode 100644 index 00000000000..a86173a9358 --- /dev/null +++ b/packages/scope-manager/src/lib/es2021.weakref.ts @@ -0,0 +1,32 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// YOU CAN REGENERATE IT USING yarn generate:lib + +import { ImplicitLibVariableOptions } from '../variable'; + +export const es2021_weakref = { + WeakRef: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, + name: 'WeakRef', + }, + WeakRefConstructor: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'WeakRefConstructor', + }, + FinalizationRegistry: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, + name: 'FinalizationRegistry', + }, + FinalizationRegistryConstructor: { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + name: 'FinalizationRegistryConstructor', + }, +} as Record; diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index 347f63158c6..fcb4fab6cfe 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -3,16 +3,10 @@ // YOU CAN REGENERATE IT USING yarn generate:lib import { ImplicitLibVariableOptions } from '../variable'; -import { es2020 } from './es2020'; +import { es2021 } from './es2021'; import { esnext_intl } from './esnext.intl'; -import { esnext_string } from './esnext.string'; -import { esnext_promise } from './esnext.promise'; -import { esnext_weakref } from './esnext.weakref'; export const esnext = { - ...es2020, + ...es2021, ...esnext_intl, - ...esnext_string, - ...esnext_promise, - ...esnext_weakref, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index dfae31e0796..7ad94cf41a6 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -11,6 +11,7 @@ import { es2017 } from './es2017'; import { es2018 } from './es2018'; import { es2019 } from './es2019'; import { es2020 } from './es2020'; +import { es2021 } from './es2021'; import { esnext } from './esnext'; import { dom } from './dom'; import { dom_iterable } from './dom.iterable'; @@ -48,6 +49,9 @@ import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; import { es2020_intl } from './es2020.intl'; +import { es2021_promise } from './es2021.promise'; +import { es2021_string } from './es2021.string'; +import { es2021_weakref } from './es2021.weakref'; import { esnext_array } from './esnext.array'; import { esnext_symbol } from './esnext.symbol'; import { esnext_asynciterable } from './esnext.asynciterable'; @@ -61,6 +65,7 @@ import { es2017_full } from './es2017.full'; import { es2018_full } from './es2018.full'; import { es2019_full } from './es2019.full'; import { es2020_full } from './es2020.full'; +import { es2021_full } from './es2021.full'; import { esnext_full } from './esnext.full'; import { lib as libBase } from './lib'; @@ -74,6 +79,7 @@ const lib = { es2018, es2019, es2020, + es2021, esnext, dom, 'dom.iterable': dom_iterable, @@ -111,6 +117,9 @@ const lib = { 'es2020.string': es2020_string, 'es2020.symbol.wellknown': es2020_symbol_wellknown, 'es2020.intl': es2020_intl, + 'es2021.promise': es2021_promise, + 'es2021.string': es2021_string, + 'es2021.weakref': es2021_weakref, 'esnext.array': esnext_array, 'esnext.symbol': esnext_symbol, 'esnext.asynciterable': esnext_asynciterable, @@ -124,6 +133,7 @@ const lib = { 'es2018.full': es2018_full, 'es2019.full': es2019_full, 'es2020.full': es2020_full, + 'es2021.full': es2021_full, 'esnext.full': esnext_full, lib: libBase, } as const; diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index 3f76351c98f..8dca7959b25 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -371,12 +371,6 @@ export const webworker = { isValueVariable: false, name: 'PushPermissionDescriptor', }, - PushSubscriptionChangeEventInit: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - name: 'PushSubscriptionChangeEventInit', - }, PushSubscriptionJSON: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1373,12 +1367,6 @@ export const webworker = { isValueVariable: true, name: 'PushSubscription', }, - PushSubscriptionChangeEvent: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'PushSubscriptionChangeEvent', - }, PushSubscriptionOptions: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, @@ -1673,12 +1661,6 @@ export const webworker = { isValueVariable: true, name: 'WebGLFramebuffer', }, - WebGLObject: { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, - name: 'WebGLObject', - }, WebGLProgram: { eslintImplicitGlobalSetting: 'readonly', isTypeVariable: true, diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index 5f173893b58..06e8eaf2103 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -12,6 +12,7 @@ type Lib = | 'es2018' | 'es2019' | 'es2020' + | 'es2021' | 'esnext' | 'dom' | 'dom.iterable' @@ -49,6 +50,9 @@ type Lib = | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' + | 'es2021.promise' + | 'es2021.string' + | 'es2021.weakref' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' @@ -62,6 +66,7 @@ type Lib = | 'es2018.full' | 'es2019.full' | 'es2020.full' + | 'es2021.full' | 'esnext.full' | 'lib'; diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index eb88660fdfa..9afe2766926 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -558,7 +558,7 @@ export function getTokenType( case SyntaxKind.GetKeyword: case SyntaxKind.SetKeyword: - // falls through + // intentional fallthrough default: }