From 64a645ba6ef30198afd40727fd0a2e27f20ce445 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 03:12:50 +0300 Subject: [PATCH] change the way it gets browsers globals variables with get-browser-globals.js script #166 #164 --- .gitignore | 1 + get-browser-globals.js | 20 +- globals.json | 702 +++++------------------------------------ package.json | 1 + readme.md | 2 +- 5 files changed, 89 insertions(+), 637 deletions(-) diff --git a/.gitignore b/.gitignore index 239ecff..0687a95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules yarn.lock +browser_vars.json diff --git a/get-browser-globals.js b/get-browser-globals.js index 8be2304..9fd6dfa 100644 --- a/get-browser-globals.js +++ b/get-browser-globals.js @@ -1,5 +1,10 @@ 'use strict'; +const fs = require('fs'); + +const { browser } = require('jshint/src/vars.js'); + + const blacklist = [ /^webkit/i, 'BeforeInstallPromptEvent', @@ -42,7 +47,7 @@ const blacklist = [ 'values' ]; -const globals = Object.getOwnPropertyNames(window) +const globals = Object.getOwnPropertyNames(browser) .sort((a, b) => a.localeCompare(b)) .filter(global => { for (const pattern of blacklist) { @@ -65,11 +70,8 @@ for (const key of globals) { ret[key] = key.startsWith('on'); } -copy(JSON.stringify(ret, null, '\t')); - -/* - -Usage: -Open an Incognito window in Chrome Canary and paste the above into the console. You'll now have a new object in your clipboard for the `browser` field in `globals.json`. You still need to manually filter out items from the `builtin` list. - -*/ +fs.writeFile('./browser_vars.json', JSON.stringify(ret, null, '\t'), (error) => { + if (error) { + return console.log(error); + } +}); diff --git a/globals.json b/globals.json index 2e66ee1..b55027c 100644 --- a/globals.json +++ b/globals.json @@ -225,253 +225,67 @@ "WeakSet": false }, "browser": { - "AbortController": false, - "AbortSignal": false, - "AbsoluteOrientationSensor": false, - "Accelerometer": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffect": false, - "AnimationEvent": false, - "appendParam": false, + "addEventListener": false, "applicationCache": false, - "ApplicationCache": false, - "ApplicationCacheErrorEvent": false, - "Array": false, - "ArrayBuffer": false, - "assert": false, - "assertInstanceof": false, - "assertNotReached": false, "atob": false, - "Atomics": false, - "Attr": false, "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioDestinationNode": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioParamMap": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioWorklet": false, - "AudioWorkletNode": false, - "AuthenticatorAssertionResponse": false, - "AuthenticatorAttestationResponse": false, - "AuthenticatorResponse": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "BarcodeDetector": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "BiquadFilterNode": false, "Blob": false, - "BlobEvent": false, "blur": false, - "Boolean": false, - "BroadcastChannel": false, "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStreamTrack": false, "CanvasGradient": false, "CanvasPattern": false, "CanvasRenderingContext2D": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "CharacterData": false, "clearInterval": false, "clearTimeout": false, - "clientInformation": false, - "Clipboard": false, - "ClipboardEvent": false, - "ClipboardItem": false, "close": false, "closed": false, - "CloseEvent": false, "Comment": false, "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ConvolverNode": false, - "CountQueuingStrategy": false, - "cr": false, - "createElementWithClassName": false, "createImageBitmap": false, - "Credential": false, - "CredentialsContainer": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, "CSS": false, - "CSSConditionRule": false, - "CSSFontFaceRule": false, "CSSGroupingRule": false, - "CSSImageValue": false, "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSKeywordValue": false, - "CSSMathInvert": false, - "CSSMathMax": false, - "CSSMathMin": false, - "CSSMathNegate": false, - "CSSMathProduct": false, - "CSSMathSum": false, - "CSSMathValue": false, - "CSSMatrixComponent": false, + "CSSMarginRule": false, "CSSMediaRule": false, "CSSNamespaceRule": false, - "CSSNumericArray": false, - "CSSNumericValue": false, "CSSPageRule": false, - "CSSPerspective": false, - "CSSPositionValue": false, - "CSSRotate": false, "CSSRule": false, "CSSRuleList": false, - "CSSScale": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, "CSSStyleDeclaration": false, "CSSStyleRule": false, "CSSStyleSheet": false, - "CSSStyleValue": false, - "CSSSupportsRule": false, - "CSSTransformComponent": false, - "CSSTransformValue": false, - "CSSTranslate": false, - "CSSUnitValue": false, - "CSSUnparsedValue": false, - "CSSVariableReferenceValue": false, - "CustomElementRegistry": false, - "customElements": false, "CustomEvent": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "DecompressionStream": false, - "defaultstatus": false, "defaultStatus": false, - "DelayNode": false, - "DeviceMotionEvent": false, - "DeviceMotionEventAcceleration": false, - "DeviceMotionEventRotationRate": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "disableTextSelectAndDrag": false, + "dispatchEvent": false, "document": false, "Document": false, "DocumentFragment": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, "Element": false, - "ElementInternals": false, - "elide": false, - "encodeURI": false, - "encodeURIComponent": false, - "ensureTransitionEndEvent": false, - "EnterPictureInPictureEvent": false, - "Error": false, - "ErrorEvent": false, - "escape": false, - "eval": false, - "EvalError": false, + "ElementTimeControl": false, "event": false, "Event": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "External": false, - "FeaturePolicy": false, - "FederatedCredential": false, "fetch": false, "File": false, "FileList": false, "FileReader": false, - "find": false, - "findAncestor": false, - "findAncestorByClass": false, - "Float32Array": false, - "Float64Array": false, "focus": false, - "FocusEvent": false, - "FontFace": false, - "FontFaceSetLoadEvent": false, "FormData": false, - "FormDataEvent": false, - "FragmentDirective": false, - "frameElement": false, "frames": false, - "Function": false, - "GainNode": false, - "Gamepad": false, - "GamepadButton": false, - "GamepadEvent": false, - "GamepadHapticActuator": false, - "Geolocation": false, - "GeolocationCoordinates": false, - "GeolocationPosition": false, - "GeolocationPositionError": false, "getComputedStyle": false, - "getDeepActiveElement": false, - "getRequiredElement": false, - "getSelection": false, - "getSVGElement": false, - "globalThis": false, - "Gyroscope": false, - "HashChangeEvent": false, - "hasKeyModifiers": false, "Headers": false, "history": false, - "History": false, - "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, "HTMLAudioElement": false, "HTMLBaseElement": false, + "HTMLBlockquoteElement": false, "HTMLBodyElement": false, "HTMLBRElement": false, "HTMLButtonElement": false, "HTMLCanvasElement": false, "HTMLCollection": false, - "HTMLContentElement": false, "HTMLDataElement": false, "HTMLDataListElement": false, "HTMLDetailsElement": false, @@ -479,13 +293,10 @@ "HTMLDirectoryElement": false, "HTMLDivElement": false, "HTMLDListElement": false, - "HTMLDocument": false, "HTMLElement": false, "HTMLEmbedElement": false, - "HTMLEscape": false, "HTMLFieldSetElement": false, "HTMLFontElement": false, - "HTMLFormControlsCollection": false, "HTMLFormElement": false, "HTMLFrameElement": false, "HTMLFrameSetElement": false, @@ -496,7 +307,9 @@ "HTMLIFrameElement": false, "HTMLImageElement": false, "HTMLInputElement": false, + "HTMLIsIndexElement": false, "HTMLLabelElement": false, + "HTMLLayerElement": false, "HTMLLegendElement": false, "HTMLLIElement": false, "HTMLLinkElement": false, @@ -511,8 +324,6 @@ "HTMLOListElement": false, "HTMLOptGroupElement": false, "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, "HTMLParagraphElement": false, "HTMLParamElement": false, "HTMLPictureElement": false, @@ -521,10 +332,8 @@ "HTMLQuoteElement": false, "HTMLScriptElement": false, "HTMLSelectElement": false, - "HTMLShadowElement": false, "HTMLSlotElement": false, "HTMLSourceElement": false, - "HTMLSpanElement": false, "HTMLStyleElement": false, "HTMLTableCaptionElement": false, "HTMLTableCellElement": false, @@ -538,404 +347,69 @@ "HTMLTitleElement": false, "HTMLTrackElement": false, "HTMLUListElement": false, - "HTMLUnknownElement": false, "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDeadline": false, - "IIRFilterNode": false, "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "indexedDB": false, - "Infinity": false, - "innerHeight": false, - "innerWidth": false, - "InputDeviceInfo": false, - "InputEvent": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, "IntersectionObserver": false, - "IntersectionObserverEntry": false, "Intl": false, - "isFinite": false, - "isNaN": false, - "isRTL": false, - "isSecureContext": false, - "isTextInputElement": false, - "JSCompiler_renameProperty": false, - "JSON": false, - "Keyboard": false, - "KeyboardEvent": false, - "KeyboardLayoutMap": false, - "KeyframeEffect": false, - "LargestContentfulPaint": false, - "LayoutShift": false, "length": false, - "LinearAccelerationSensor": false, - "listenOnce": false, "localStorage": false, "location": false, - "Location": false, - "locationbar": false, - "Lock": false, - "LockManager": false, - "Map": false, "matchMedia": false, - "Math": false, - "MediaCapabilities": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyMessageEvent": false, - "MediaKeys": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, "MediaRecorder": false, - "MediaSession": false, - "MediaSettingsRange": false, - "MediaSource": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackEvent": false, - "menubar": false, "MessageChannel": false, "MessageEvent": false, "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, "MouseEvent": false, "moveBy": false, "moveTo": false, - "MutationEvent": false, "MutationObserver": false, - "MutationRecord": false, "name": false, - "NamedNodeMap": false, - "NaN": false, - "NavigationPreloadManager": false, "navigator": false, - "Navigator": false, - "NetworkInformation": false, "Node": false, "NodeFilter": false, - "NodeIterator": false, "NodeList": false, "Notification": false, - "Number": false, - "Object": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinstallprompt": true, - "onbeforeprint": true, "onbeforeunload": true, "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontextmenu": true, - "oncuechange": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, "onerror": true, "onfocus": true, - "onformdata": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpageshow": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerrawupdate": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, "onresize": true, - "onscroll": true, - "onsearch": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onselectionchange": true, - "onselectstart": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitionend": true, - "onunhandledrejection": true, "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwebkitanimationend": true, - "onwebkitanimationiteration": true, - "onwebkitanimationstart": true, - "onwebkittransitionend": true, - "onwheel": true, "open": false, "openDatabase": false, "opener": false, "Option": false, - "OrientationSensor": false, "origin": false, - "OscillatorNode": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, "parent": false, - "parseFloat": false, - "parseInt": false, - "PasswordCredential": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentInstruments": false, - "PaymentManager": false, - "PaymentMethodChangeEvent": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, "performance": false, - "Performance": false, - "PerformanceElementTiming": false, - "PerformanceEntry": false, - "PerformanceEventTiming": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceServerTiming": false, - "PerformanceTiming": false, - "PeriodicSyncManager": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "personalbar": false, - "PhotoCapabilities": false, - "PictureInPictureWindow": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, "print": false, - "ProcessingInstruction": false, - "ProgressEvent": false, - "Promise": false, - "PromiseRejectionEvent": false, - "prompt": false, - "Proxy": false, - "PublicKeyCredential": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queryRequiredElement": false, "queueMicrotask": false, - "quoteString": false, - "RadioNodeList": false, "Range": false, - "RangeError": false, - "ReadableStream": false, - "ReadableStreamDefaultReader": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "RelativeOrientationSensor": false, - "RemotePlayback": false, - "ReportingObserver": false, + "removeEventListener": false, "Request": false, "requestAnimationFrame": false, - "requestIdleCallback": false, "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, "resizeTo": false, "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCDTMFSender": false, - "RTCDTMFToneChangeEvent": false, - "RTCError": false, - "RTCErrorEvent": false, - "RTCIceCandidate": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceErrorEvent": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpReceiver": false, - "RTCRtpSender": false, - "RTCRtpTransceiver": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, "screen": false, - "Screen": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, "scroll": false, - "scrollbars": false, "scrollBy": false, - "scrollLeftForDocument": false, "scrollTo": false, - "scrollTopForDocument": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "Sensor": false, - "SensorErrorEvent": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, "sessionStorage": false, - "Set": false, "setInterval": false, - "setScrollLeftForDocument": false, - "setScrollTopForDocument": false, "setTimeout": false, - "ShadowRoot": false, - "ShadyCSS": false, - "SharedArrayBuffer": false, "SharedWorker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesisErrorEvent": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "StaticRange": false, "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, "Storage": false, - "StorageEvent": false, - "StorageManager": false, - "String": false, - "styleMedia": false, - "StylePropertyMap": false, - "StylePropertyMapReadOnly": false, "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "SubtleCrypto": false, "SVGAElement": false, + "SVGAltGlyphDefElement": false, + "SVGAltGlyphElement": false, + "SVGAltGlyphItemElement": false, "SVGAngle": false, + "SVGAnimateColorElement": false, "SVGAnimatedAngle": false, "SVGAnimatedBoolean": false, "SVGAnimatedEnumeration": false, @@ -944,6 +418,8 @@ "SVGAnimatedLengthList": false, "SVGAnimatedNumber": false, "SVGAnimatedNumberList": false, + "SVGAnimatedPathData": false, + "SVGAnimatedPoints": false, "SVGAnimatedPreserveAspectRatio": false, "SVGAnimatedRect": false, "SVGAnimatedString": false, @@ -954,11 +430,20 @@ "SVGAnimationElement": false, "SVGCircleElement": false, "SVGClipPathElement": false, + "SVGColor": false, + "SVGColorProfileElement": false, + "SVGColorProfileRule": false, "SVGComponentTransferFunctionElement": false, + "SVGCSSRule": false, + "SVGCursorElement": false, "SVGDefsElement": false, "SVGDescElement": false, + "SVGDocument": false, "SVGElement": false, + "SVGElementInstance": false, + "SVGElementInstanceList": false, "SVGEllipseElement": false, + "SVGExternalResourcesRequired": false, "SVGFEBlendElement": false, "SVGFEColorMatrixElement": false, "SVGFEComponentTransferElement": false, @@ -967,7 +452,6 @@ "SVGFEDiffuseLightingElement": false, "SVGFEDisplacementMapElement": false, "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, "SVGFEFloodElement": false, "SVGFEFuncAElement": false, "SVGFEFuncBElement": false, @@ -985,24 +469,59 @@ "SVGFETileElement": false, "SVGFETurbulenceElement": false, "SVGFilterElement": false, + "SVGFilterPrimitiveStandardAttributes": false, + "SVGFitToViewBox": false, + "SVGFontElement": false, + "SVGFontFaceElement": false, + "SVGFontFaceFormatElement": false, + "SVGFontFaceNameElement": false, + "SVGFontFaceSrcElement": false, + "SVGFontFaceUriElement": false, "SVGForeignObjectElement": false, "SVGGElement": false, - "SVGGeometryElement": false, + "SVGGlyphElement": false, + "SVGGlyphRefElement": false, "SVGGradientElement": false, - "SVGGraphicsElement": false, + "SVGHKernElement": false, + "SVGICCColor": false, "SVGImageElement": false, + "SVGLangSpace": false, "SVGLength": false, "SVGLengthList": false, "SVGLinearGradientElement": false, "SVGLineElement": false, + "SVGLocatable": false, "SVGMarkerElement": false, "SVGMaskElement": false, "SVGMatrix": false, "SVGMetadataElement": false, + "SVGMissingGlyphElement": false, "SVGMPathElement": false, "SVGNumber": false, "SVGNumberList": false, + "SVGPaint": false, "SVGPathElement": false, + "SVGPathSeg": false, + "SVGPathSegArcAbs": false, + "SVGPathSegArcRel": false, + "SVGPathSegClosePath": false, + "SVGPathSegCurvetoCubicAbs": false, + "SVGPathSegCurvetoCubicRel": false, + "SVGPathSegCurvetoCubicSmoothAbs": false, + "SVGPathSegCurvetoCubicSmoothRel": false, + "SVGPathSegCurvetoQuadraticAbs": false, + "SVGPathSegCurvetoQuadraticRel": false, + "SVGPathSegCurvetoQuadraticSmoothAbs": false, + "SVGPathSegCurvetoQuadraticSmoothRel": false, + "SVGPathSegLinetoAbs": false, + "SVGPathSegLinetoHorizontalAbs": false, + "SVGPathSegLinetoHorizontalRel": false, + "SVGPathSegLinetoRel": false, + "SVGPathSegLinetoVerticalAbs": false, + "SVGPathSegLinetoVerticalRel": false, + "SVGPathSegList": false, + "SVGPathSegMovetoAbs": false, + "SVGPathSegMovetoRel": false, "SVGPatternElement": false, "SVGPoint": false, "SVGPointList": false, @@ -1012,136 +531,65 @@ "SVGRadialGradientElement": false, "SVGRect": false, "SVGRectElement": false, + "SVGRenderingIntent": false, "SVGScriptElement": false, "SVGSetElement": false, "SVGStopElement": false, "SVGStringList": false, + "SVGStylable": false, "SVGStyleElement": false, "SVGSVGElement": false, "SVGSwitchElement": false, "SVGSymbolElement": false, + "SVGTests": false, "SVGTextContentElement": false, "SVGTextElement": false, "SVGTextPathElement": false, "SVGTextPositioningElement": false, "SVGTitleElement": false, "SVGTransform": false, + "SVGTransformable": false, "SVGTransformList": false, + "SVGTRefElement": false, "SVGTSpanElement": false, "SVGUnitTypes": false, + "SVGURIReference": false, "SVGUseElement": false, "SVGViewElement": false, - "Symbol": false, - "SyntaxError": false, - "TaskAttributionTiming": false, + "SVGViewSpec": false, + "SVGVKernElement": false, + "SVGZoomAndPan": false, "Text": false, "TextDecoder": false, - "TextDecoderStream": false, "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TimeRanges": false, - "toolbar": false, + "TimeEvent": false, "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransitionEvent": false, - "TreeWalker": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "TypeError": false, - "UIEvent": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, "URL": false, - "URLSearchParams": false, - "UserActivation": false, - "ValidityState": false, - "VideoPlaybackQuality": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "WaveShaperNode": false, - "WeakMap": false, - "WeakSet": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, "WebGLActiveInfo": false, "WebGLBuffer": false, "WebGLContextEvent": false, "WebGLFramebuffer": false, "WebGLProgram": false, - "WebGLQuery": false, "WebGLRenderbuffer": false, "WebGLRenderingContext": false, - "WebGLSampler": false, "WebGLShader": false, "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, "WebGLTexture": false, - "WebGLTransformFeedback": false, "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, "WebSocket": false, - "WebUIListener": false, - "WheelEvent": false, "window": false, "Window": false, "Worker": false, - "Worklet": false, - "WritableStream": false, - "WritableStreamDefaultWriter": false, + "XDomainRequest": false, "XMLDocument": false, "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, "XMLSerializer": false, "XPathEvaluator": false, + "XPathException": false, "XPathExpression": false, - "XPathResult": false, - "XRBoundedReferenceSpace": false, - "XRDOMOverlayState": false, - "XRFrame": false, - "XRHitTestResult": false, - "XRHitTestSource": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRPose": false, - "XRRay": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRTransientInputHitTestResult": false, - "XRTransientInputHitTestSource": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLLayer": false, - "XSLTProcessor": false + "XPathNamespace": false, + "XPathNSResolver": false, + "XPathResult": false }, "worker": { "addEventListener": false, diff --git a/package.json b/package.json index 3f6f52d..5ad1fc7 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ }, "devDependencies": { "ava": "^2.2.0", + "jshint": "git+https://git@github.com/shapkarin/jshint.git#master", "tsd": "^0.9.0", "xo": "^0.25.3" }, diff --git a/readme.md b/readme.md index fdcfa08..c33345f 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ > Global identifiers from different JavaScript environments -Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb5c10b5826603a55a33b9ad/src/vars.js) and [ESLint](https://github.com/eslint/eslint/blob/b648406218f8a2d7302b98f5565e23199f44eb31/conf/environments.json) and merged. +Extracted from [JSHint](https://github.com/jshint/jshint/blob/1013d51d8ca8cfe4ed3d8b54835c9c181c5ac7b7/src/vars.js#L74). It's just a [JSON file](globals.json), so use it in whatever environment you like.