From fb6b83c9eface51acad916cff365b98aa826f56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Sat, 22 Nov 2025 11:56:28 +0000 Subject: [PATCH] tools: lint Temporal global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/60793 Reviewed-By: Michaƫl Zasso Reviewed-By: Antoine du Hamel Reviewed-By: Ilyas Shabi Reviewed-By: Colin Ihrig Reviewed-By: LiviaMedeiros Reviewed-By: Luigi Pinca Reviewed-By: Chengzhong Wu --- 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 b919708a97..3d638a697d 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.",