Skip to content

Commit

Permalink
tools: enable es2022 env in ESLint config
Browse files Browse the repository at this point in the history
This adds more globals to the set known by ESLint.
  • Loading branch information
targos committed Feb 19, 2022
1 parent dde2f78 commit 9553735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
},
Expand Down
5 changes: 0 additions & 5 deletions test/.eslintrc.yaml
Expand Up @@ -67,8 +67,3 @@ rules:
# Global scoped methods and vars
globals:
WebAssembly: false
BigInt: false
BigInt64Array: false
BigUint64Array: false
SharedArrayBuffer: false
globalThis: false

0 comments on commit 9553735

Please sign in to comment.