Skip to content

Commit 9553735

Browse files
committed
tools: enable es2022 env in ESLint config
This adds more globals to the set known by ESLint.
1 parent dde2f78 commit 9553735

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.eslintrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Module._findPath = (request, paths, isMain) => {
3535

3636
module.exports = {
3737
root: true,
38+
env: {
39+
es2022: true,
40+
},
3841
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
3942
plugins: ['jsdoc', 'markdown', 'node-core'],
4043
parser: '@babel/eslint-parser',
@@ -314,13 +317,10 @@ module.exports = {
314317
'node-core/no-duplicate-requires': 'error',
315318
},
316319
globals: {
317-
Atomics: 'readable',
318-
BigInt: 'readable',
319320
Crypto: 'readable',
320321
CryptoKey: 'readable',
321322
fetch: 'readable',
322323
FormData: 'readable',
323-
globalThis: 'readable',
324324
Response: 'readable',
325325
SubtleCrypto: 'readable',
326326
},

test/.eslintrc.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,3 @@ rules:
6767
# Global scoped methods and vars
6868
globals:
6969
WebAssembly: false
70-
BigInt: false
71-
BigInt64Array: false
72-
BigUint64Array: false
73-
SharedArrayBuffer: false
74-
globalThis: false

0 commit comments

Comments
 (0)