Skip to content

Commit

Permalink
Document globals ignored in lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Nov 16, 2023
1 parent 8f2e6d9 commit 29715e3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tools/bundle-bug-finder/_prelude.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/*global Deno, document, globalThis, console, Uint8Array, URL, ArrayBuffer, setTimeout, clearTimeout, Promise, Symbol, TextEncoder, addEventListener, removeEventListener, Map, window, self, global, TransformStream, AggregateError, ReadableStream, WritableStream, TextDecoder, Set, Int32Array, performance, Response, WebAssembly, atob, EventTarget, DOMException, localStorage, fetch, FormData, btoa, Buffer, Headers, WebSocket, File, Blob, Request, CompressionStream, URLSearchParams, AbortController, Atomics, SharedArrayBuffer, setInterval, clearInterval, BigInt, crypto, Uint32Array, Uint16Array, Float32Array, Float64Array, Int16Array, Int8Array, DataView, Document, Element, PATH, Proxy, noExitRuntime, Reflect, Intl, module, define, DocumentFragment, FinalizationRegistry, WeakMap */
// these are globals that deno-dom is leaking currently and we need to ignore them
/* definitions which exist in Deno's global scope and are ok for us to ignore */
/*global Deno, globalThis, console, Uint8Array, URL, ArrayBuffer, setTimeout, clearTimeout, Promise, Symbol, TextEncoder, addEventListener, removeEventListener, Map, window, self, global, TransformStream, AggregateError, ReadableStream, WritableStream, TextDecoder, Set, Int32Array, performance, Response, WebAssembly, atob, EventTarget, DOMException, localStorage, fetch, FormData, btoa, Buffer, Headers, WebSocket, File, Blob, Request, CompressionStream, URLSearchParams, AbortController, Atomics, SharedArrayBuffer, setInterval, clearInterval, BigInt, crypto, Uint32Array, Uint16Array, Float32Array, Float64Array, Int16Array, Int8Array, DataView, Proxy, Reflect, Intl, FinalizationRegistry, WeakMap */

// globals that deno-dom is leaking currently and we need to ignore them
// tracking on https://github.com/b-fuze/deno-dom/issues/151
/*global i, l, result */

/* deno-dom browser-only codepath: */
/*global document, Element, Document, DocumentFragment */

/* Emscripten prelude: */
/* global PATH, noExitRuntime */

/* commonjs etc globals, guarded by `typeof`, eslint analysis fails here: */
/*global define, module */

/*eslint no-undef: "error"*/

0 comments on commit 29715e3

Please sign in to comment.