Skip to content

Commit b3d720f

Browse files
fiskerlumirlumirmdjermanovic
authored
feat: add ES2025 globals (#19835)
* feat: add missing es2025 globals * Update conf/globals.js Co-authored-by: 루밀LuMir <[email protected]> * Update globals.js * Update conf/globals.js Co-authored-by: Milos Djermanovic <[email protected]> --------- Co-authored-by: 루밀LuMir <[email protected]> Co-authored-by: Milos Djermanovic <[email protected]>
1 parent 677a283 commit b3d720f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

conf/globals.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ const es2024 = {
135135

136136
const es2025 = {
137137
...es2024,
138+
Float16Array: false,
139+
Iterator: false,
138140
};
139141

140142
//-----------------------------------------------------------------------------

tests/lib/rules/no-undef.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ ruleTester.run("no-undef", rule, {
220220
code: "class C { static { a; function a() {} } }",
221221
languageOptions: { ecmaVersion: 2022, sourceType: "module" },
222222
},
223+
{
224+
code: "[Float16Array, Iterator]",
225+
languageOptions: { ecmaVersion: 2025 },
226+
},
223227
],
224228
invalid: [
225229
{

0 commit comments

Comments
 (0)