From b5d98c9258e5a102e477c8a9b0094cdc1eacf299 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Thu, 20 Nov 2025 11:17:35 +0000 Subject: [PATCH] tools: lint Temporal global --- lib/eslint.config_partial.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/eslint.config_partial.mjs b/lib/eslint.config_partial.mjs index b919708a978ed6..3d638a697d233b 100644 --- a/lib/eslint.config_partial.mjs +++ b/lib/eslint.config_partial.mjs @@ -230,6 +230,12 @@ export default [ name: 'SharedArrayBuffer', message: "Use `const { constructSharedArrayBuffer } = require('internal/util');` instead of the global.", }, + // Temporal is not available in primordials because it can be + // disabled with --no-harmony-temporal CLI flag. + { + name: 'Temporal', + message: 'Use `const { Temporal } = globalThis;` instead of the global.', + }, { name: 'TextDecoder', message: "Use `const { TextDecoder } = require('internal/encoding');` instead of the global.",