| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 916cda4 commit 7fc68f9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,8 @@ rules: | |||
| 37 | 37 | # disabled with --no-harmony-atomics CLI flag. | |
| 38 | 38 | - name: Atomics | |
| 39 | 39 | message: Use `const { Atomics } = globalThis;` instead of the global. | |
| 40 | + - name: BroadcastChannel | ||
| 41 | + message: Use `const { BroadcastChannel } = require('internal/worker/io');` instead of the global. | ||
| 40 | 42 | - name: Buffer | |
| 41 | 43 | message: Use `const { Buffer } = require('buffer');` instead of the global. | |
| 42 | 44 | - name: DOMException | |
@@ -45,6 +47,8 @@ rules: | |||
| 45 | 47 | message: Use `const { Event } = require('internal/event_target');` instead of the global. | |
| 46 | 48 | - name: EventTarget | |
| 47 | 49 | message: Use `const { EventTarget } = require('internal/event_target');` instead of the global. | |
| 50 | + - name: Headers | ||
| 51 | + message: Use `const { Headers } = require('internal/deps/undici/undici');` instead of the global. | ||
| 48 | 52 | # Intl is not available in primordials because it can be | |
| 49 | 53 | # disabled with --without-intl build flag. | |
| 50 | 54 | - name: Intl | |
@@ -55,6 +59,10 @@ rules: | |||
| 55 | 59 | message: Use `const { MessageEvent } = require('internal/worker/io');` instead of the global. | |
| 56 | 60 | - name: MessagePort | |
| 57 | 61 | message: Use `const { MessagePort } = require('internal/worker/io');` instead of the global. | |
| 62 | + - name: Request | ||
| 63 | + message: Use `const { Request } = require('internal/deps/undici/undici');` instead of the global. | ||
| 64 | + - name: Response | ||
| 65 | + message: Use `const { Response } = require('internal/deps/undici/undici');` instead of the global. | ||
| 58 | 66 | # SharedArrayBuffer is not available in primordials because it can be | |
| 59 | 67 | # disabled with --no-harmony-sharedarraybuffer CLI flag. | |
| 60 | 68 | - name: SharedArrayBuffer | |
@@ -81,6 +89,8 @@ rules: | |||
| 81 | 89 | message: Use `const { Crypto } = require('internal/crypto/webcrypto');` instead of the global. | |
| 82 | 90 | - name: CryptoKey | |
| 83 | 91 | message: Use `const { CryptoKey } = require('internal/crypto/webcrypto');` instead of the global. | |
| 92 | + - name: fetch | ||
| 93 | + message: Use `const { fetch } = require('internal/deps/undici/undici');` instead of the global. | ||
| 84 | 94 | - name: global | |
| 85 | 95 | message: Use `const { globalThis } = primordials;` instead of `global`. | |
| 86 | 96 | - name: globalThis | |
| Back | FazBrowse Home | New Git URL |
0 commit comments