Skip to content

Commit 0182034

Browse files
author
Brian Vaughn
committed
Add globalThis to ESLint configs
1 parent 3fb5432 commit 0182034

File tree

7 files changed

+6
-1
lines changed

7 files changed

+6
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ module.exports = {
208208

209209
globals: {
210210
SharedArrayBuffer: true,
211+
globalThis: true,
211212

212213
spyOnDev: true,
213214
spyOnDevAndProd: true,

packages/scheduler/src/forks/SchedulerDOM.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ var isHostTimeoutScheduled = false;
8888
// Web Workers can't access window.
8989
// Many browsers provide a globalThis property for this reason.
9090
// For legacy reasons (mostly unit tests) this code prefers window if defined.
91-
// eslint-disable-next-line no-undef
9291
const globalObject = typeof window !== 'undefined' ? window : globalThis;
9392

9493
// Capture local references to native APIs, in case a polyfill overrides them.

scripts/rollup/validate/eslintrc.cjs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
SharedArrayBuffer: true,
3030
Int32Array: true,
3131
ArrayBuffer: true,
32+
globalThis: true,
3233

3334
TaskController: true,
3435

scripts/rollup/validate/eslintrc.cjs2015.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
SharedArrayBuffer: true,
3030
Int32Array: true,
3131
ArrayBuffer: true,
32+
globalThis: true,
3233

3334
TaskController: true,
3435

scripts/rollup/validate/eslintrc.esm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
SharedArrayBuffer: true,
3030
Int32Array: true,
3131
ArrayBuffer: true,
32+
globalThis: true,
3233

3334
TaskController: true,
3435

scripts/rollup/validate/eslintrc.fb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = {
3030
SharedArrayBuffer: true,
3131
Int32Array: true,
3232
ArrayBuffer: true,
33+
globalThis: true,
3334

3435
TaskController: true,
3536

scripts/rollup/validate/eslintrc.rn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
SharedArrayBuffer: true,
3030
Int32Array: true,
3131
ArrayBuffer: true,
32+
globalThis: true,
3233

3334
TaskController: true,
3435

0 commit comments

Comments
 (0)