Skip to content

Commit

Permalink
feat(scope-manager): reduce generated lib file size (#3468)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher authored May 30, 2021
1 parent d4f0774 commit 258116b
Show file tree
Hide file tree
Showing 52 changed files with 2,237 additions and 12,572 deletions.
19 changes: 19 additions & 0 deletions packages/scope-manager/src/lib/base-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

export const TYPE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
});
export const VALUE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: false,
isValueVariable: true,
});
export const TYPE_VALUE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: true,
});
365 changes: 53 additions & 312 deletions packages/scope-manager/src/lib/dom.iterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,318 +3,59 @@
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const dom_iterable = {
AudioParam: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'AudioParam',
},
AudioParamMap: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'AudioParamMap',
},
BaseAudioContext: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'BaseAudioContext',
},
CSSRuleList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'CSSRuleList',
},
CSSStyleDeclaration: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'CSSStyleDeclaration',
},
Cache: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'Cache',
},
CanvasPathDrawingStyles: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'CanvasPathDrawingStyles',
},
ClientRectList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'ClientRectList',
},
DOMRectList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'DOMRectList',
},
DOMStringList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'DOMStringList',
},
DOMTokenList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'DOMTokenList',
},
DataTransferItemList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'DataTransferItemList',
},
FileList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'FileList',
},
FormData: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'FormData',
},
HTMLAllCollection: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'HTMLAllCollection',
},
HTMLCollectionBase: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'HTMLCollectionBase',
},
HTMLCollectionOf: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'HTMLCollectionOf',
},
HTMLFormElement: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'HTMLFormElement',
},
HTMLSelectElement: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'HTMLSelectElement',
},
Headers: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'Headers',
},
IDBDatabase: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'IDBDatabase',
},
IDBObjectStore: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'IDBObjectStore',
},
MediaKeyStatusMap: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'MediaKeyStatusMap',
},
MediaList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'MediaList',
},
MimeTypeArray: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'MimeTypeArray',
},
NamedNodeMap: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'NamedNodeMap',
},
Navigator: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'Navigator',
},
NodeList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'NodeList',
},
NodeListOf: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'NodeListOf',
},
Plugin: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'Plugin',
},
PluginArray: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'PluginArray',
},
RTCRtpTransceiver: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'RTCRtpTransceiver',
},
RTCStatsReport: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'RTCStatsReport',
},
SVGLengthList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SVGLengthList',
},
SVGNumberList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SVGNumberList',
},
SVGPointList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SVGPointList',
},
SVGStringList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SVGStringList',
},
SourceBufferList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SourceBufferList',
},
SpeechGrammarList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SpeechGrammarList',
},
SpeechRecognitionResult: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SpeechRecognitionResult',
},
SpeechRecognitionResultList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'SpeechRecognitionResultList',
},
StyleSheetList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'StyleSheetList',
},
TextTrackCueList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'TextTrackCueList',
},
TextTrackList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'TextTrackList',
},
TouchList: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'TouchList',
},
URLSearchParams: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'URLSearchParams',
},
VRDisplay: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'VRDisplay',
},
WEBGL_draw_buffers: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'WEBGL_draw_buffers',
},
WebGL2RenderingContextBase: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'WebGL2RenderingContextBase',
},
WebGL2RenderingContextOverloads: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'WebGL2RenderingContextOverloads',
},
WebGLRenderingContextBase: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'WebGLRenderingContextBase',
},
WebGLRenderingContextOverloads: {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
name: 'WebGLRenderingContextOverloads',
},
AudioParam: TYPE,
AudioParamMap: TYPE,
BaseAudioContext: TYPE,
CSSRuleList: TYPE,
CSSStyleDeclaration: TYPE,
Cache: TYPE,
CanvasPathDrawingStyles: TYPE,
ClientRectList: TYPE,
DOMRectList: TYPE,
DOMStringList: TYPE,
DOMTokenList: TYPE,
DataTransferItemList: TYPE,
FileList: TYPE,
FormData: TYPE,
HTMLAllCollection: TYPE,
HTMLCollectionBase: TYPE,
HTMLCollectionOf: TYPE,
HTMLFormElement: TYPE,
HTMLSelectElement: TYPE,
Headers: TYPE,
IDBDatabase: TYPE,
IDBObjectStore: TYPE,
MediaKeyStatusMap: TYPE,
MediaList: TYPE,
MimeTypeArray: TYPE,
NamedNodeMap: TYPE,
Navigator: TYPE,
NodeList: TYPE,
NodeListOf: TYPE,
Plugin: TYPE,
PluginArray: TYPE,
RTCRtpTransceiver: TYPE,
RTCStatsReport: TYPE,
SVGLengthList: TYPE,
SVGNumberList: TYPE,
SVGPointList: TYPE,
SVGStringList: TYPE,
SourceBufferList: TYPE,
SpeechGrammarList: TYPE,
SpeechRecognitionResult: TYPE,
SpeechRecognitionResultList: TYPE,
StyleSheetList: TYPE,
TextTrackCueList: TYPE,
TextTrackList: TYPE,
TouchList: TYPE,
URLSearchParams: TYPE,
VRDisplay: TYPE,
WEBGL_draw_buffers: TYPE,
WebGL2RenderingContextBase: TYPE,
WebGL2RenderingContextOverloads: TYPE,
WebGLRenderingContextBase: TYPE,
WebGLRenderingContextOverloads: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
Loading

0 comments on commit 258116b

Please sign in to comment.