Skip to content

Commit 9a11481

Browse files
targosdanielleadams
authored andcommitted
tools: enable es2022 env in ESLint config
This adds more globals to the set known by ESLint. PR-URL: #42043 Reviewed-By: Mestery <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 7678d56 commit 9a11481

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.eslintrc.js

+3-2
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',
@@ -316,8 +319,6 @@ module.exports = {
316319
'node-core/no-duplicate-requires': 'error',
317320
},
318321
globals: {
319-
Atomics: 'readable',
320-
BigInt: 'readable',
321322
Crypto: 'readable',
322323
CryptoKey: 'readable',
323324
fetch: 'readable',

test/.eslintrc.yaml

-5
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)