summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-02-01 11:52:46 -0800
committerRich Trott <rtrott@gmail.com>2019-02-03 16:46:31 -0800
commit46af4c1d01b90ee6845abf40c813f384286f3ad4 (patch)
tree8ada03942ff29cb4328e9d932db2a56a0d0acffb /.eslintrc.js
parent7540f9dbe8114c62e0ec7d751bf2a36998514b2c (diff)
downloadnode-new-46af4c1d01b90ee6845abf40c813f384286f3ad4.tar.gz
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>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 6d5668d5ae..9bd8e66123 100644
--- a/.eslintrc.js
+++ b/.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',
},
};