tools: use 'readonly' for EventSource global

The EventSource entry was the only global in eslint.config.mjs still
using the deprecated 'readable' value. ESLint keeps 'readable' working
as an alias of 'readonly' for historical reasons, so this is a
consistency fix rather than a functional one.

The flat config migration converted the other globals in this block
but missed this single entry.

Fixes: https://github.com/nodejs/node/issues/64757
Signed-off-by: Honey Tyagi <honeyt290@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/64787
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
This commit is contained in:
Honey Tyagi authored and Antoine du Hamel committed 2026-08-06 16:00:18 +02:00
1 parent 984260bf44
commit f8a13811cd
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ export default [
CryptoKey: 'readonly',
DecompressionStream: 'readonly',
DisposableStack: 'readonly',
EventSource: 'readable',
EventSource: 'readonly',
fetch: 'readonly',
Float16Array: 'readonly',
FormData: 'readonly',