From 287cf4aee7d4312519cba32886ad63a0ef204001 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 15 Jun 2023 00:17:32 -0400 Subject: [PATCH] Lint --- .eslintrc.js | 2 ++ scripts/rollup/validate/eslintrc.cjs.js | 18 ++++++++++++++---- scripts/rollup/validate/eslintrc.cjs2015.js | 18 ++++++++++++++---- scripts/rollup/validate/eslintrc.esm.js | 18 ++++++++++++++---- scripts/rollup/validate/eslintrc.fb.js | 18 ++++++++++++++---- scripts/rollup/validate/eslintrc.rn.js | 18 +++++++++++++++--- scripts/rollup/validate/eslintrc.umd.js | 18 ++++++++++++++---- 7 files changed, 87 insertions(+), 23 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9c616ec6cf5c9..941c2e3b23ca8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -460,6 +460,8 @@ module.exports = { // For Flow type annotation. Only `BigInt` is valid at runtime. bigint: 'readonly', BigInt: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', Class: 'readonly', ClientRect: 'readonly', CopyInspectedElementPath: 'readonly', diff --git a/scripts/rollup/validate/eslintrc.cjs.js b/scripts/rollup/validate/eslintrc.cjs.js index e8c2943b93349..313f9639fb984 100644 --- a/scripts/rollup/validate/eslintrc.cjs.js +++ b/scripts/rollup/validate/eslintrc.cjs.js @@ -14,7 +14,21 @@ module.exports = { Symbol: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -28,15 +42,11 @@ module.exports = { trustedTypes: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', // Flight - Uint8Array: 'readonly', Promise: 'readonly', // Temp diff --git a/scripts/rollup/validate/eslintrc.cjs2015.js b/scripts/rollup/validate/eslintrc.cjs2015.js index e5b79f84c3e09..dc35c98311863 100644 --- a/scripts/rollup/validate/eslintrc.cjs2015.js +++ b/scripts/rollup/validate/eslintrc.cjs2015.js @@ -14,7 +14,21 @@ module.exports = { Symbol: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -28,15 +42,11 @@ module.exports = { trustedTypes: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', // Flight - Uint8Array: 'readonly', Promise: 'readonly', // Temp diff --git a/scripts/rollup/validate/eslintrc.esm.js b/scripts/rollup/validate/eslintrc.esm.js index a9bf9ab5a0bcc..ae1846c08d7ba 100644 --- a/scripts/rollup/validate/eslintrc.esm.js +++ b/scripts/rollup/validate/eslintrc.esm.js @@ -14,7 +14,21 @@ module.exports = { Symbol: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -28,15 +42,11 @@ module.exports = { trustedTypes: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', // Flight - Uint8Array: 'readonly', Promise: 'readonly', // Temp diff --git a/scripts/rollup/validate/eslintrc.fb.js b/scripts/rollup/validate/eslintrc.fb.js index 122e7e3fd4c4d..94483e5fe075a 100644 --- a/scripts/rollup/validate/eslintrc.fb.js +++ b/scripts/rollup/validate/eslintrc.fb.js @@ -14,7 +14,21 @@ module.exports = { Proxy: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -29,15 +43,11 @@ module.exports = { trustedTypes: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', // Flight - Uint8Array: 'readonly', Promise: 'readonly', // Temp diff --git a/scripts/rollup/validate/eslintrc.rn.js b/scripts/rollup/validate/eslintrc.rn.js index 000c1ae92a7a3..9038701285521 100644 --- a/scripts/rollup/validate/eslintrc.rn.js +++ b/scripts/rollup/validate/eslintrc.rn.js @@ -14,6 +14,21 @@ module.exports = { Proxy: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', + Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -29,9 +44,6 @@ module.exports = { // RN supports this setImmediate: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', diff --git a/scripts/rollup/validate/eslintrc.umd.js b/scripts/rollup/validate/eslintrc.umd.js index 17eae00040551..020bfe0bb6b0c 100644 --- a/scripts/rollup/validate/eslintrc.umd.js +++ b/scripts/rollup/validate/eslintrc.umd.js @@ -13,7 +13,21 @@ module.exports = { Proxy: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', + + Int8Array: 'readonly', + Uint8Array: 'readonly', + Uint8ClampedArray: 'readonly', + Int16Array: 'readonly', Uint16Array: 'readonly', + Int32Array: 'readonly', + Uint32Array: 'readonly', + Float32Array: 'readonly', + Float64Array: 'readonly', + BigInt64Array: 'readonly', + BigUint64Array: 'readonly', + DataView: 'readonly', + ArrayBuffer: 'readonly', + Reflect: 'readonly', globalThis: 'readonly', // Vendor specific @@ -33,15 +47,11 @@ module.exports = { trustedTypes: 'readonly', // Scheduler profiling - Int32Array: 'readonly', - ArrayBuffer: 'readonly', - TaskController: 'readonly', reportError: 'readonly', AggregateError: 'readonly', // Flight - Uint8Array: 'readonly', Promise: 'readonly', // Temp