Skip to content

Commit fb6b83c

Browse files
authored
tools: lint Temporal global
PR-URL: #60793 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ilyas Shabi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 45eeb6f commit fb6b83c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/eslint.config_partial.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ export default [
230230
name: 'SharedArrayBuffer',
231231
message: "Use `const { constructSharedArrayBuffer } = require('internal/util');` instead of the global.",
232232
},
233+
// Temporal is not available in primordials because it can be
234+
// disabled with --no-harmony-temporal CLI flag.
235+
{
236+
name: 'Temporal',
237+
message: 'Use `const { Temporal } = globalThis;` instead of the global.',
238+
},
233239
{
234240
name: 'TextDecoder',
235241
message: "Use `const { TextDecoder } = require('internal/encoding');` instead of the global.",

0 commit comments

Comments
 (0)