Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb6b83c

Browse filesBrowse files
authored
tools: lint Temporal global
PR-URL: #60793 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 45eeb6f commit fb6b83c
Copy full SHA for fb6b83c

1 file changed

+6Lines changed: 6 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/eslint.config_partial.mjs‎

Copy file name to clipboardExpand all lines: lib/eslint.config_partial.mjs
+6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.