mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tools: replace deprecated ESLint configuration
For `globals`, booleans are deprecated in favor strings `'readable'`/`'writeable'`. PR-URL: https://github.com/nodejs/node/pull/25877 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
This commit is contained in:
parent
7540f9dbe8
commit
46af4c1d01
26
.eslintrc.js
26
.eslintrc.js
@ -277,18 +277,18 @@ module.exports = {
|
||||
'node-core/no-duplicate-requires': 'error',
|
||||
},
|
||||
globals: {
|
||||
Atomics: false,
|
||||
BigInt: false,
|
||||
BigInt64Array: false,
|
||||
BigUint64Array: false,
|
||||
DTRACE_HTTP_CLIENT_REQUEST: false,
|
||||
DTRACE_HTTP_CLIENT_RESPONSE: false,
|
||||
DTRACE_HTTP_SERVER_REQUEST: false,
|
||||
DTRACE_HTTP_SERVER_RESPONSE: false,
|
||||
DTRACE_NET_SERVER_CONNECTION: false,
|
||||
DTRACE_NET_STREAM_END: false,
|
||||
TextEncoder: false,
|
||||
TextDecoder: false,
|
||||
queueMicrotask: false,
|
||||
Atomics: 'readable',
|
||||
BigInt: 'readable',
|
||||
BigInt64Array: 'readable',
|
||||
BigUint64Array: 'readable',
|
||||
DTRACE_HTTP_CLIENT_REQUEST: 'readable',
|
||||
DTRACE_HTTP_CLIENT_RESPONSE: 'readable',
|
||||
DTRACE_HTTP_SERVER_REQUEST: 'readable',
|
||||
DTRACE_HTTP_SERVER_RESPONSE: 'readable',
|
||||
DTRACE_NET_SERVER_CONNECTION: 'readable',
|
||||
DTRACE_NET_STREAM_END: 'readable',
|
||||
TextEncoder: 'readable',
|
||||
TextDecoder: 'readable',
|
||||
queueMicrotask: 'readable',
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user