mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
tools: enable es2022 env in ESLint config
This adds more globals to the set known by ESLint. PR-URL: https://github.com/nodejs/node/pull/42043 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
fea682ca94
commit
6742625126
2 files changed
+3
-8
No files matched your search
+3
-3
@@ -35,6 +35,9 @@ Module._findPath = (request, paths, isMain) => {
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
es2022: true,
|
||||
},
|
||||
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
|
||||
plugins: ['jsdoc', 'markdown', 'node-core'],
|
||||
parser: '@babel/eslint-parser',
|
||||
@@ -314,13 +317,10 @@ module.exports = {
|
||||
'node-core/no-duplicate-requires': 'error',
|
||||
},
|
||||
globals: {
|
||||
Atomics: 'readable',
|
||||
BigInt: 'readable',
|
||||
Crypto: 'readable',
|
||||
CryptoKey: 'readable',
|
||||
fetch: 'readable',
|
||||
FormData: 'readable',
|
||||
globalThis: 'readable',
|
||||
Response: 'readable',
|
||||
SubtleCrypto: 'readable',
|
||||
},
|
||||
|
||||
@@ -67,8 +67,3 @@ rules:
|
||||
# Global scoped methods and vars
|
||||
globals:
|
||||
WebAssembly: false
|
||||
BigInt: false
|
||||
BigInt64Array: false
|
||||
BigUint64Array: false
|
||||
SharedArrayBuffer: false
|
||||
globalThis: false
|
||||
Reference in new issue
Block a user