diff --git a/.eslintrc.json b/.eslintrc.json index b050f53e7..af7e62575 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,19 +1,9 @@ { "env": { - "es6": true, + "es2024": true, "node": true }, "extends": "eslint:recommended", - "globals": { - "Atomics": "readable", - "BigInt": "readable", - "BigInt64Array": "readable", - "BigUint64Array": "readable", - "queueMicrotask": "readable", - "SharedArrayBuffer": "readable", - "TextEncoder": "readable", - "TextDecoder": "readable" - }, "overrides": [ { "files": ["*.mjs"], @@ -43,9 +33,8 @@ } } ], - "parser": "babel-eslint", "parserOptions": { - "ecmaVersion": 10, + "ecmaVersion": "latest", "ecmaFeatures": { "globalReturn": true }, diff --git a/test/descriptor-test.js b/test/descriptor-test.js index 4e10923de..7ac203c9d 100644 --- a/test/descriptor-test.js +++ b/test/descriptor-test.js @@ -62,7 +62,7 @@ function createDescriptorFromOptions(desc, type) { describe('Descriptor', () => { for (const type in parsable) { - if (parsable.hasOwnProperty(type)) { + if (Object.prototype.hasOwnProperty.call(type)) { for (const data of parsable[type]) { const {input, descriptor, checksum, isrange, issolvable, hasprivatekeys, requirechecksum, network} = data; @@ -111,7 +111,7 @@ describe('Descriptor', () => { } for (const type in validAddresses) { - if (validAddresses.hasOwnProperty(type)) { + if (validAddresses.hasOwnProperty.call(type)) { for (const data of validAddresses[type]) { const {input, network, range, error} = data;